Python - centos6 installation

Review: Only one extension source can exist. When you plan to install the second one, you need to delete the first one, rpm -e epel-release --- XiaoQ


python2.7 installation

Environment: centos 6.5

wget  https://www.python.org/ftp/python/2.7.8/Python-2.7.8.tgz

tar xvzf Python-2.7.8.tgz

cd Python-2.7.8

./configure --prefix=/usr/local

make --jobs=grep processor/proc/cpuinfo | wc -l

make install

Copy the python header file to the standard directory to avoid finding the required header file when compiling ansible

cd /usr/local/include/python2.7

cp -a ./* /usr/local/include/

Back up the old version of python and symlink the new version of python

cd /usr/bin

mv python python2.6

ln -s /usr/local/bin/python

Modify the yum script to point to the old version of python to prevent it from running

vim /usr/bin/yum

! /usr/bin/python  -->  #!/usr/bin/python2.6

Recommended Posts

Python - centos6 installation
Centos source installation Python3
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
Zabbix 2.2.20 installation details (Centos6.9)
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 Python Java installations
Docker CentOS installation method
Linux CentOS 7 installation tutorial
Centos7 docker installation details
Python introduction and environment installation
Discourse CentOS 8 new installation manual
CentOS upgrade python2 to pyth
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
Centos7 installation and configuration prometheus
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
CentOS 8 (1)
CentOS7 postgresql installation and use
CentOS 6.9 compile and install python