wget https://www.python.org/ftp/python/3.8.2/Python-3.8.2.tgz
tar -zxvf Python-3.8.2.tgz
cd Python-3.8.2/
yum -y install gcc* glib*
./configure --prefix=/usr/local/python3.8.2
yum -y install zlib*
make && make install
ln -s /usr/local/python3.8.2/bin/python3 /usr/bin/python3
ln -s /usr/local/python3.8.2/bin/pip3 /usr/bin/pip3
echo "PATH=/usr/local/python3.8.2/bin:$PATH" >> /etc/profile
echo "export PATH" >> /etc/profile
source /etc/profile
python3.8.2手动安装流程步骤
最新推荐文章于 2024-07-02 11:33:29 发布