yum -y install yum-utils yum-builddep python curl -O https://www.python.org/ftp/python/3.8.0/Python-3.8.0.tgz tar xf Python-3.8.0.tgz cd Python-3.8.0 ./configure make make install
設置python3為默認版本
vi /etc/profile.d/python.sh #編輯用戶自定義配置,輸入alias參數 alias python='/usr/local/bin/python3.8' #這里寫你的python路徑 source /etc/profile.d/python.sh #重啟會話使配置生效
wget https://bootstrap.pypa.io/get-pip.py python get-pip.py -i https://pypi.tuna.tsinghua.edu.cn/simple/