Install the latest Python 3.6 version on Ubuntu

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 there is an error: can't decompress data;zlib not available indicates that the dependency is missing: 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

Install the latest Python 3.6 version on Ubuntu
Ubuntu install the latest Python 3.
Install TensorFlow (python2.7 version) on Ubuntu
Install Python3 on Ubuntu 14.04
Install Python3 on Ubuntu 16.04
Install Python3.7 on Ubuntu
Install Python 3.7 on Ubuntu 18.04 LTS
Install the CPU version of Caffe on Ubuntu
How to install the latest MySQL on Ubuntu 18.04
How to install Python 3.8 on Ubuntu 18.04
Install Python virtual environment on Ubuntu 18.04
ubuntu18.04 install python2
ubuntu12.04 install python3
ubuntu18.04 install python
Centos install the latest version of cmake
Install the flat theme latabulous on Ubuntu 16.04
Install NeoVim on Ubuntu: the easiest way
How to install Python2 on Ubuntu20.04 ubuntu/focal64
Use python3 to install third on ubuntu
Install the latest version of Thunderbird and exchange plugins under ubuntu
Ubuntu18.04 switch Python version
install vscode on ubuntu18
Install Redis on Ubuntu
Install R4 on ubuntu20
Install nvtop on Ubuntu 18.04
Install postgresql-10 on Ubuntu 18.04
Install python3.6 under Ubuntu 16.04
Install docker on Ubuntu
Ubuntu16.04 switch python version
Install Docker on ubuntu18.04
Install nodejs10 on Ubuntu16
Install mysql on Ubuntu 14.04
Install Django on ubuntu
Install Pytorch+CUDA on Ubuntu 16.04
Install rJava on Ubuntu18
Install JDK10+ on Ubuntu
Install python in Ubuntu
Install KDE on Ubuntu16.04.2
Install Docker on Ubuntu18
python Tic-Tac-Toe-text version (on)
Install flashplayer on Ubuntu
Install the old version of seurat under Ubuntu
[Practice] How to install python3.6 on Ubuntu system
The ultimate guide to install gooderp on ubuntu
The latest method of installing Mongodb on Ubuntu 16.04
Docker practice (1): install Docker on Ubuntu 16.04
ubuntu16.04 install caffe cpu version
Install ubuntu on virtual machine
Install OpenSSL 1.0.2 on Ubuntu Server 14.04
Install QQ robot on Ubuntu 16.04
ubuntu18.04 compile and install python3.8
Install Android Studio on Ubuntu
Install python3 on linux, keep python2
Install scrapy framework on ubuntu
Install the Ethereum client Mist on windows and ubuntu
Install Mysql offline on Ubuntu
Install Oracle Java8 on Ubuntu
ubuntu1804 build the latest Suricata
Install Odoo 11 stack on Ubuntu 16.04
Install Go locale on Ubuntu16
Install common software on Ubuntu 16.04