yum Python3 yum python3.10仓库_python

 

 

可联通外网的linux系统终端上安装python3

1,建立yum仓库: https://mirrors.163.com/centos/7.9.2009/os/x86_64/

2,使用yum下载安装对应包: #yum -y groupinstall "Development tools" #yum -y install zlib-devel bzip2-devel openssl-devel ncurses-devel sqlite-devel readline-devel tk-devel gdbm-devel db4-devel libpcap-devel xz-devel #yum install libffi-devel -y

3,官网下载包(https://www.python.org/downloads/source/)

解压后tgz包 #mkdir /usr/local/python3

#创建编译安装目录 #cd Python-3.7.0 #./configure --prefix=/usr/local/python3 #make && make install #ln -s /usr/local/python3/bin/python3 /usr/local/bin/python3 #ln -s /usr/local/python3/bin/pip3 /usr/local/bin/pip3

4,编译完成后查看python -versiuon即可

没有处理不了的问题,只有不能处理的人