This is an old revision of the document!
If I want Python 3.6, I have to compile it myself. Use “dnf” for RedHat based distros and “apt-get” for Debian.
sudo dnf install readline-devel # or up-arrow won't navigate history sudo dnf install sqlite-devel sudo dnf install bzip2-devel
Then…
wget https://www.python.org/ftp/python/3.6.0/Python-3.6.0.tgz tar -xvf Python-3.6.0.tgz cd Python-3.6.0/ ./configure --prefix=/opt/python3 make sudo make install # sudo ln -s /opt/python3/bin/python3 /usr/bin/python3