有没有办法将Python 3.5.2设置为CentOS 7上的默认Python版本?目前,我已经默认安装了Python 2.7,并分别安装了Python 3.5.2.
我使用了以下命令
mv /usr/bin/python /usr/bin/python-old
sudo ln -fs /usr/bin/python3 /usr/bin/python
但在那之后,yum
给出了错误.
-bash: /usr/bin/yum: /usr/bin/python: bad interpreter: No such file or directory
我有什么遗漏吗?
注:这是一个类似但相反的问题Linux CentOS 7, how to set Python2.7 as default Python version?