Compatible installation of Python3 on CentOS

 

yum install yum-utils

yum-builddep python

curl -O https://www.python.org/ftp/python/3.9.1/Python-3.9.1.tgz

tar xf Python-3.9.1.tgz

cd Python-3.9.1

./configure

make

make install

Note: The source code package reference directory is: https://www.python.org/ftp/python/

Installation completion check:

[root@yang Python-3.9.1]# python3 -V
Python 3.9.1
[root@yang Python-3.9.1]# pip3 -V
pip 20.2.3 from /usr/local/lib/python3.9/site-packages/pip (python 3.9)

 

Guess you like

Origin blog.csdn.net/xlyrh/article/details/113528808