Use pyenv,which make it easy to install and change between versions.
I have a tutorial here.
Example run:
I have a tutorial here.
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 or what version want to use mint@mint ~ $ pyenv global 3.6.2 # Check what's available mint@mint ~ $ pyenv install --list # here will list all version available from 2 to 3,Anaconda,PyPy...ect. # 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 # It's safe don't mess with OS python # 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. >>>