2024-04-23 20:10:45 发布
网友
我在更改python版本时遇到了一个问题,我正在使用centos6,我需要将python版本从2.6更改为2.7。在
[root@master Downloads]# which python /usr/bin/python [root@master Downloads]# which python2.7 /usr/local/bin/python2.7
如何使用python2.7作为默认值,或者将python的路径更改为2.7?在
现在我的系统是这样的:
$ ls -la /usr/bin/python lrwxrwxrwx. 1 root root 7 Oct 1 2012 /usr/bin/python -> python2 $ ls -la /usr/bin/python2 lrwxrwxrwx. 1 root root 9 Oct 1 2012 /usr/bin/python2 -> python2.7 $ ls -la /usr/bin/python2.7 -rwxr-xr-x. 1 root root 10768 Jul 24 2012 /usr/bin/python2.7
你想这么做我想:
所以/usr/bin/python -> /usr/bin/python2.7
/usr/bin/python -> /usr/bin/python2.7
但我不能像克劳斯·沃泽查指出的那样使用百胜并更新我的系统。在
现在我的系统是这样的:
你想这么做我想:
^{pr2}$所以
/usr/bin/python -> /usr/bin/python2.7
但我不能像克劳斯·沃泽查指出的那样使用百胜并更新我的系统。在
相关问题 更多 >
编程相关推荐