想安装一个音乐网站,需要升级系统的python 3.7.3,我将安装过程写出来,仅供参考。

1、下载并安装python 3

wget https://www.python.org/ftp/python/3.7.3/Python-3.7.3.tgz
tar -zxf Python-3.7.3.tgz
cd Python-3.7.3
./configure
make
make install
mv /usr/bin/python /usr/bin/python.bak   
ln -s /usr/local/bin/python3 /usr/bin/python

2、python安装过程中的报错

yum -y install zlib*
yum install gcc gcc-c++ -y 
yum install libffi-devel -y
make install

2、安装完python后,yum报错

vi /usr/bin/yum

(Visited 1 times, 1 visits today)