Ubuntu16 upgrade Python3

There are many ways to upgrade Python on Ubuntu 16.04 on the Internet, but most of the tutorials use source installation methods. This blog post will use another method to upgrade the Python 3.5 that comes with the system to Python 3.6.
Anyone who has used Ubuntu 16.04 knows that there is no Python 3.6 installation package in the software source installation list of this version of Ubuntu, so we need to add the installation source and enter the following command on the command line:

sudo add-apt-repository ppa:jonathonf/python-3.6

After adding the Python 3.6 installation source to the system, enter the following command to update the software list:

sudo apt-get update

After updating the installation source, enter the following command to install Python 3.6:

sudo apt-get install python3.6

After the installation is complete, set the priority of Python 3.6 and enter the following command:

sudo update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.51
sudo update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.62

Next, let's update pip, enter the following code:

sudo apt-get install python3-pip
sudo pip3 install --upgrade pip

At this point, the python upgrade is complete

Recommended Posts

Ubuntu16 upgrade Python3
ubuntu16.04 upgrade python2
ubuntu18.04 install python2
Relearn ubuntu --python3
CentOS7 upgrade python3
ubuntu12.04 install python3
Ubuntu14 upgrade MySQL
ubuntu14.04.1 upgrade openssh
ubuntu18.04 install python
Ubuntu18.04 switch Python version
Centos 6.4 python 2.6 upgrade to 2.7
Install python3.6 under Ubuntu 16.04
ubuntu configuration python, Red
Centos 6.4 python 2.6 upgrade to 2.7
Ubuntu16.04 switch python version
Python MySQLd under Ubuntu
How to upgrade to Ubuntu 20.04
[python] python2 and python3 under ubuntu
Install Python3 on Ubuntu 14.04
Python virtual environment: Ubuntu16.04
Install python in Ubuntu
Install Python3 on Ubuntu 16.04
Install Python3.7 on Ubuntu
How to upgrade to Ubuntu 20.04
How to upgrade all Python libraries on Ubuntu 18.04
Centos default python2.6 upgrade to
Ubuntu install the latest Python 3.
Install Python 3.7 on Ubuntu 18.04 LTS
ubuntu sets python2.5 environment variables
ubuntu18.04 compile and install python3.8
Upgrade Ubuntu 18.04 on Azure to 18.10
ubuntu view python installation path
Server upgrade Ubuntu 20.04 LTS record
Server upgrade Ubuntu 20.04 LTS record
ubuntu build python development environment
ubuntu offline installation python environment
How to upgrade to Ubuntu 16.04 LTS
How to upgrade to PHP 7 on Ubuntu 14.04
How to install Python 3.8 on Ubuntu 18.04
Centos6.7 comes with python upgrade to
Python Chinese encoding setting under ubuntu
Install Python virtual environment on Ubuntu 18.04
Install TensorFlow (python2.7 version) on Ubuntu
Ubuntu upgrade software and ubuntu upgrade system commands
Steps to upgrade Laravel 5.4 to 5.6 in Ubuntu 16.04
Install the latest Python 3.6 version on Ubuntu
Detailed tutorial on installing python3.7 for ubuntu18
Python multithreading
Error when installing Python module on Ubuntu
Python CookBook
Python FAQ
Python3 dictionary
ubuntu16.04 method steps to upgrade the kernel
Python3 module
python (you-get)
Python string
Python basics
Python descriptor
Python basics 2
Python exec
Python notes