#cd /usr/local #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 wget https://www.python.org/ftp/python/3.8.1/Python-3.8.1.tgz #mkdir python3 #tar -xvzf Python-3.8.1.tgz #cd Python-3.8.1 #./configure --prefix=/usr/local/python3 #make && make install #ln -s /usr/local/python3/bin/python3 /usr/bin/python3 # ln -s /usr/local/python3/bin/pip3 /usr/bin/pip3 #python3 -V Python 3.8.1 #pip3 -V pip 24.0 from /usr/local/python3/lib/python3.8/site-packages/pip (python 3.8) #pip3 install --upgrade pip
标签:3.8,Python,local,devel,centos7,python3.8,usr,安装,python3 From: https://www.cnblogs.com/tochw/p/18050358