pyenv#

Commands#

  • Python version options:

    • list available Python versions: pyenv install -l

    • install new Python version: pyenv install <version>

    • uninstall Python version: pyenv uninstall <version>

    • list installed Python versions: pyenv versions

  • update with brew: brew upgrade pyenv

  • set python version for current directory (and its subdirectories): pyenv local <version>

Set Python Version for new Project#

  1. list installed Python versions: pyenv versions

  2. do we want to use one of the versions or install an other?

  • list available Python versions: pyenv install -l

  • install new Python version: pyenv install <version>

  1. set python version for current directory (and its subdirectories): pyenv local <version>

Mac Install#

  • problems during Python install like ModuleNotFoundError: No module named '_lzma' can be fixed with brew install xz

Remove failed Builds (Mac)#

  • change to /var/folders

  • search for python-build: find . -name "*python-build*" | less

  • remove folders