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.
wget https://repo.continuum.io/archive/Anaconda3-4.3.0-Linux-x86_64.sh bash Anaconda3-4.3.0-Linux-x86_64.sh
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