Retrieval & installation

How to retrieve and install a specific version of python (for example 3.5.2). Change the version according to your need.

cd /opt
sudo wget https://www.python.org/ftp/python/3.5.2/Python-3.5.2.tgz
sudo tar -xvf Python-3.5.2.tgz
cd Python-3.5.2
sudo ./configure
sudo make
sudo make install
Back