Installing latest Python version in Debian

Installing latest Python version in Debian

Sometimes is a little bit tricky to install all python components from pip or apt-get in a Debian based system. And if we need the latest version, it is a total nightmare. So I will use anaconda to install everything for me.


And then we follow the instructions. If everything went OK, the installation of python 3 will be at ~/anaconda3 , and if we accepted anaconda to prepend the install location to PATH, we must run source ~/.bashrc and everything will be set. You can test with python and you will see

Python 3.6.0 |Anaconda 4.3.0 (64-bit)| (default, Dec 23 2016, 12:22:00) 
[GCC 4.4.7 20120313 (Red Hat 4.4.7-1)] on linux
Type "help", "copyright", "credits" or "license" for more information.

If it is not the case, check your ~/.bashrc and set export PATH="/home/marti/anaconda3/bin:$PATH" at the end of the file. And run the source command said previously.

Photo: Marius Masalar