Use pyenv,my tutorial.
It's make really simple to change versions,
and safe to don't mess at all with default OS Python versions.
It's make really simple to change versions,
and safe to don't mess at all with default OS Python versions.
mint@mint ~ $ pyenv install 2.7.14 Downloading Python-2.7.14.tar.xz... -> https://www.python.org/ftp/python/2.7.14/Python-2.7.14.tar.xz Installing Python-2.7.14... Installed Python-2.7.14 to /home/mint/.pyenv/versions/2.7.14 # Make it default version,set both python and pip from command line to 2.7.14 mint@mint ~ $ pyenv global 2.7.14So what you should use is Python 3.6.
Downloading Python-3.6.4.tar.xz... -> https://www.python.org/ftp/python/3.6.4/Python-3.6.4.tar.xz Installing Python-3.6.4... Installed Python-3.6.4 to /home/mint/.pyenv/versions/3.6.4 # Make it default version,set both python and pip from command line to 3.6.4 mint@mint ~ $ pyenv global 3.6.4Going back to OS default Python is simple to.
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. >>>