These are some guides for various use.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

40 lines
983 B

  1. # Python
  2. [Python](https://www.python.org) is an interpreted general-purpose programming
  3. language.
  4. ## Installation
  5. You can install python using various ways.
  6. With `pyenv` you can switch between different versions.
  7. Install `pyenv` and `pyenv-virtualenv` and proceed with adding
  8. ```txt
  9. export PATH=${HOME}/.pyenv/bin:$PATH
  10. eval "$(pyenv init -)"
  11. eval "$(pyenv virtualenv-init -)"
  12. ```
  13. to your `~/.profile`.
  14. You can then set and install your preferred version of python globally with
  15. `pyenv install <version>` and `pyenv global <version>`.
  16. Analog to managing python versions, `pipenv` can manage pip and package versions.
  17. ### Avoid Errors in Vim
  18. Make sure to add
  19. ```vimscript
  20. let g:python_host_prog = "/usr/bin/python2"
  21. let g:python3_host_prog = "/usr/bin/python3"
  22. ```
  23. to your `init.vim` to avoid usage of `pyenv`s version of python in autocompletion.
  24. ## IDE
  25. ### Vim
  26. The steps to make Vim a python IDE are described in
  27. [the vim section of this wiki](../linux/vim/python.md).