多个版本python的版本切换

参考:
How to Install Python on CentOS 8 | Linuxize

命令:

yum install python2,python38 -y

切换到python2

alternatives --set python /usr/bin/python2

切换到python3.8

alternatives --set python /usr/bin/python3.8

你可能感兴趣的:(Linux,python,centos,linux)