CentOS upgrade python2 to pyth

I installed a centos 6.9 today, check that the default python version is 2.6, so I am ready to upgrade, follow the previous upgrade steps on ubuntu:

(1)   wget http://www.python.org/ftp/python/3.3.0/Python-3.3.0.tgz

(2)   tar -xzvf Python-3.3.0.tgz

(3)   mkdir /usr/local/python

(4)  ./configure --prefix=/usr/local/python3

A prompt appeared in the fourth step:

Tip: configure: error: no acceptable C compiler found in $PATH

It turns out that the C compiler is missing and the GCC suite needs to be installed, so install it with the following command,

(5)   yum -y install gcc

Successfully downloaded and installed successfully, repeat the fourth step command: ./configure --prefix=/usr/local/python3 Successfully configured

(6)   make

make install

(7)   mv /usr/bin/python /usr/bin/python_old2

(8)   ln -s /usr/local/python3/bin/python3/usr/bin/python

Recommended Posts

CentOS upgrade python2 to pyth
Centos 6.4 python 2.6 upgrade to 2.7
Centos 6.4 python 2.6 upgrade to 2.7
Centos default python2.6 upgrade to
CentOS7 upgrade python3
Centos6.7 comes with python upgrade to
CentOS6.5 upgrade kernel to 3.10.28
CentOS + Python3.6+
Centos 7.5 python3.6
How to install Python 3.8 on CentOS 8
How to install Python on CentOS 8
CentOS7 repairs python to save yum
Centos6 install Python2.7.13
Ubuntu16 upgrade Python3
Centos7 install Python 3.6.
CentOS install Python 3.6
Python - centos6 installation
Centos7 install Python2.7
01. Introduction to Python
Centos6.5 openssh upgrade
Centos python3 compile installation and compile gcc upgrade
R&D: How To Install Python 3 on CentOS 7
Centos install Python3
Centos7 upgrade kernel
CentOS6.8 install python2.7
centos6.9 rabbitmq 3.6.8 upgrade 3.8.2
Introduction to Python
ubuntu16.04 upgrade python2
How to upgrade all Python libraries on Ubuntu 18.04
CentOS7.5-1804 system kernel upgrade
How to upgrade to Ubuntu 20.04
Centos source installation Python3
Centos kernel version upgrade
CentOS 5 to CentOS 5.8 YUM source
CentOS Python Java installations
How to upgrade to Ubuntu 20.04
The specific steps to upgrade python on Raspberry Pi
Solution to python alignment error
Python code to find bugs (2)
Python code to find bugs(7)
How to comment python code
centos7 install python3 and ipython
Python code to find bugs(4)
Python code to find bugs (3)
Python code to find bugs(9)
Centos7.6 method to install Tomcat-8.5.39
Upgrade Ubuntu 18.04 on Azure to 18.10
How to learn python quickly
How to uninstall python plugin
Centos 6.10 reinstall python and yum
Introduction to Python related modules
ububtu10.04, 11.10 online upgrade to ubuntu12.04LTS
CentOS7 install python3 and pip3
Python code to find bugs(6)
CentOS 6.9 compile and install python
Python code to find bugs (1)
Python code to find bugs(8)
3 ways to encrypt Python files
Centos6 install python3 pip3 ipython3
How to understand python objects
Python code to find bugs(5)