Centos source installation Python3

CentOS7 installs python2.7.5 by default. When you need to use python3, you can manually download the Python source code and compile and install it.

Download python(https://www.python.org/ftp/python/3.4.3/Python-3.4.3.tar.xz)Unzip the downloaded compressed package
sudo mkdir /usr/local/python3 
Enter the decompression directory sudo./configure --prefix=/usr/local/python3
sudo make
sudo make install
CentOS installation easy_Install method:
wget -q http://peak.telecommunity.com/dist/ez_setup.py
python ez_setup.py8, CentOS install the python package management installation tool pip method as follows:
wget --no-check-certificate https://github.com/pypa/pip/archive/1.5.5.tar.gz
Note: When wget gets https, add:--no-check-certificate

tar zvxf 1.5.5    #Unzip the file cd pip-1.5.5/
python3 setup.py install
OK, so pip is installed,

Now let's install requests.

pip3 install requests
sudo yum install epel-releasesudo yum install python34
# yum install -y pcre pcre-devel  # yum install -y zlib zlib-devel  # yum install -y openssl openssl-devel
wget http://pypi.python.org/packages/source/s/setuptools/setuptools-0.6c11.tar.gz
tar zxvf setuptools-0.6c11.tar.gz
cd setuptools-0.6c11
python setup.py install

Recommended Posts

Centos source installation Python3
Python - centos6 installation
CentOS + Python3.6+
2019-07-09 CentOS7 installation
centos7_1708 installation
Centos 7.5 python3.6
Centos5 installation guide
Centos6 install Python2.7.13
Centos7 install Python 3.6.
Python2.7 [Installation Tutorial]
CentOS7 upgrade python3
CentOS install Python 3.6
Centos7 install Python2.7
Docker installation (CentOS7 installation)
Python Anaconda installation
Centos install Python3
CentOS7 docker installation
CentOS6.8 install python2.7
Centos python3 compile installation and compile gcc upgrade
CentOS online installation RabbitMQ3.7
Centos 6.4 python 2.6 upgrade to 2.7
lamp (centos7) installation lamp environment
Centos7 mqtt cluster installation
Graphical installation of CentOS8
Mysql8.0.15 installation configuration (centos7)
Linux notes (1): CentOS-7 installation
Redis3 installation under Centos7
CentOS online installation RabbitMQ3.7
CentOS 5 to CentOS 5.8 YUM source
CentOS Python Java installations
Docker CentOS installation method
Linux CentOS 7 installation tutorial
Centos7 docker installation details
Centos default python2.6 upgrade to
Python introduction and environment installation
Discourse CentOS 8 new installation manual
Centos 7 mini installation process record
centos7 install python3 and ipython
Centos mysql installation and configuration
Glusterfs cluster installation on Centos7
Redis cluster installation under CentOS
CentOS 7 Galera Cluster installation guide
CentOS 7 installation and configuration PPTP
ubuntu view python installation path
Centos 6.10 reinstall python and yum
CentOS 6.x installation mysql5.7 record
CentOS installation and configuration cmake
Graphical centos installation detailed process
Centos7.5 installation and configuration MongoDB4.0.4
Redis cluster installation under CentOS
CentOS 7 installation and configuration PPTP
Hyper-V + CentOS7 installation video tutorial
centos7 kvm installation and use
Centos7 silent installation of Oracle11g
CentOS7 install python3 and pip3
CentOS 6.8 virtual machine installation details
CentOS7 postgresql installation and use
Centos compile JDK8 source code
CentOS 6.9 compile and install python
Centos6 install python3 pip3 ipython3
Python version of OpenCV installation