Ubuntu16.04 comes with python versions python2.7 and python3.5, now I want to install python3.6.4
# Download the installation package from the official website
1. wget http://www.python.org/ftp/python/3.6.4/Python-3.6.4.tgz
# Unzip
2. tar -xvzf Python-3.6.4.tgz
# installation
3. cd Python-3.6.44../configure --with-ssl
# Compile
5. sudo make
6. sudo make install
# Create a soft connection, first check python3.6.4 installation path
7. which python3 # /usr/local/bin/python38.mv python python_org ##Keep the original python
9. sudo ln -s /usr/local/bin/python3 python10.pip3 install --upgrade pip ###Update pip311.mv pip pip_org ##Keep the original pip
12. sudo ln -s /usr/local/bin/pip3 pip
Recommended Posts