(Oct-11-2017, 12:22 PM)gruntfutuk Wrote: . I tend to do most development in VMs or, more often these days, in containers, rather than "corrupt" my local environment.For both Linux and Mac is pyenv great.
Let you install and switch between versions easy,and it's safe don't mess with OS python local environment.
Example run:
mint@mint ~ $ pyenv install 3.6.2 Downloading Python-3.6.2.tar.xz... -> https://www.python.org/ftp/python/3.6.2/Python-3.6.2.tar.xz Installing Python-3.6.2... Installed Python-3.6.2 to /home/mint/.pyenv/versions/3.6.2 # Make python and pip default to 3.6.2 mint@mint ~ $ pyenv global 3.6.2 # Check what's available mint@mint ~ $ pyenv install --list # Install the version you desire mint@mint ~ $ pyenv install anaconda-x.x.x # If just want test out Anaconda is a shell session. pyenv shell anaconda-x.x.x # Can always go back to system default mint@mint ~ $ pyenv local system mint@mint ~ $ python Python 2.7.12 (default, Nov 19 2016, 06:48:10) [GCC 5.4.0 20160609] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> mint@mint ~ $ python3 Python 3.5.2 (default, Nov 17 2016, 17:05:23) [GCC 5.4.0 20160609] on linux Type "help", "copyright", "credits" or "license" for more information. >>>