Ubuntu install the latest Python 3.

Ubuntu16.04 version is the latest Python 3.x version 3.5.

The latest stable version 3.6 can be installed from the source code execution.

To install Python 3.6, run the following command:

# wget https://www.python.org/ftp/python/3.6.2/Python-3.6.2.tar.xz
# tar -xvf Python-3.6.2.tar.xz
# cd Python-3.6.2
# . /configure
# make
# make install

If an error occurs:
can’t decompress data; zlib not available
Description lack of dependency: zlib.

# Installation depends on zlib, zlib-devel
# In ubuntu, zlib is called zlib1g, the corresponding zlib-devel is called zlib1g-dev
$ sudo apt-get install zlib1g
$ sudo apt-get install zlib1g-dev

When the installation is complete, use it to verify the location of the main binary file:

# which python3
# python3 -V

If it is not the latest 3.6, restart the system.

Check Python 3 version in Linux

# python3

To exit the Python prompt, just type.

quit()
or
exit()
And press Enter.

Congratulations! Python 3.6 is now installed on your system.

When executing pip install:
pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.

Need to install:

$ sudo apt-get install openssl
$ sudo apt-get install libssl-dev

Re

$ sudo ./configure
$ sudo make && make install

Recommended Posts

Ubuntu install the latest Python 3.
Install the latest Python 3.6 version on Ubuntu
ubuntu18.04 install python2
ubuntu12.04 install python3
ubuntu18.04 install python
Install Python3 on Ubuntu 14.04
Install python in Ubuntu
Install Python3 on Ubuntu 16.04
Install Python3.7 on Ubuntu
How to install the latest MySQL on Ubuntu 18.04
Install Python 3.7 on Ubuntu 18.04 LTS
ubuntu18.04 compile and install python3.8
ubuntu1804 build the latest Suricata
How to install Python 3.8 on Ubuntu 18.04
Install the latest OpenCV4.3 under Centos8
Install Python virtual environment on Ubuntu 18.04
Install TensorFlow (python2.7 version) on Ubuntu
Centos6 install Python2.7.13
Ubuntu16 upgrade Python3
Centos7 install Python 3.6.
Relearn ubuntu --python3
ubuntu18.04 install docker
CentOS install Python 3.6
Ubuntu install guide
Centos7 install Python2.7
ubuntu install nodejs
ubuntu 16 install asp.net
Centos install the latest version of cmake
ubuntu install leanote
Install Ubuntu 18.04 in the virtual machine VMware
ubuntu install Jenkins
Install the flat theme latabulous on Ubuntu 16.04
Install NeoVim on Ubuntu: the easiest way
2.1 The Python Interpreter (python interpreter)
docker install ubuntu
ubuntu install elasticsearch
How to install Python2 on Ubuntu20.04 ubuntu/focal64
Centos install Python3
Use python3 to install third on ubuntu
ubuntu16.0.1 install pagoda
CentOS6.8 install python2.7
ubuntu 18.04 install teamviewer
ubuntu install sendmail
ubuntu16.04 upgrade python2
Install the latest version of Thunderbird and exchange plugins under ubuntu
Install the CPU version of Caffe on Ubuntu
Install the old version of seurat under Ubuntu
How to install python in ubuntu server environment
CentOS7 update the latest kernel | RPM directly install the kernel
The solution to the failure to install .deb under Ubuntu 16.04
Install Python3 environment in a brand new Ubuntu
[Practice] How to install python3.6 on Ubuntu system
The consequences of uninstalling python in ubuntu, very
How to install the downloaded module in python
The ultimate guide to install gooderp on ubuntu
The latest method of installing Mongodb on Ubuntu 16.04
Ubuntu18.04 switch Python version
install vscode on ubuntu18
Install node.js under Ubuntu
Install mysql-pytho in Ubuntu
ubuntu install zsh terminal