CentOS 7 Python3.6 升级到 Python3.7.12
-
代码如下!
yum install libffi-devel wget https://www.python.org/ftp/python/3.7.12/Python-3.7.12.tgz tar -xvf Python-3.7.12.tgz rm /usr/bin/pip3 rm /usr/bin/python3 cd Python-3.7.12 ./configure --prefix=/usr/local/python3 make && make altinstall make clean ln -s /usr/local/python3/bin/pip3.7 /usr/bin/pip3 ln -s /usr/local/python3/bin/python3.7 /usr/bin/python3 python3 -V
-
支持站长的技术分享!