Change Python version in current terminal (shell), in current directory (local, creates .python-local file) or globally (global):
pyenv shell 3.4.5
pyenv local 3.4.5
pyenv global 3.4.5 <-- using global is recommended
Issue with sudo
It doesn't work with sudo. But it shouldn't matter, because when installing python package you don't need to use sudo, as Python is installed in ~/.pyenv and doesn't require root privileges.
Update pyenv
You need to update pyenv so that you can install new Python versions available. When executing pyenv install --list I didn't see latest Py 3.6 rc1. I had to run pyenv update to be able to install it.
Homebrew
Mac notes for Homebrew:
Install GUI toolkits for the Homebrew Python: brew install python, brew install wxpython, brew install pygtk, brew install gtk+3 pygobject3, etc.
To install GUI toolkits for Homebrew's Python 3 type: brew install python3, brew install gtk+3 pygobject3 --with-python3.
To install PySide for Qt4 type: install Qt 4.8.5 dmg and type sudo pip install pyside==1.2.2. If there are errors when importing library add pyside directory to DYLD_LIBRARY_PATH or run the pyside postinstall script manually (find it on the web).
changed the title [-]Using pyenv to manage multiple Python versions on Ubuntu[/-][+]How to use pyenv to manage multiple Python versions on Ubuntu[/+]on Sep 17, 2016
changed the title [-]How to use pyenv to manage multiple Python versions on Ubuntu[/-][+]How to use pyenv to manage multiple Python versions on Ubuntu/Mac[/+]on Mar 2, 2017
Activity