centos7从python2.7升级到python3.6

sudo yum groupinstall 'Development Tools'
sudo yum install centos-release-scl
sudo yum install rh-python36

python --version
Python 2.7.5

scl enable rh-python36 bash

python --version
Python 3.6.3

yum -y install python-pip

posted @ 2021-12-24 16:24  meetrice  阅读(313)  评论(0编辑  收藏  举报