当我执行命令时,python
我得到以下内容。
Python 2.6.8 (unknown, Apr 9 2013, 19:12:12)
[GCC 4.7.2] on linux3
Type "help", "copyright", "credits" or "license" for more information.
我想让 python2.7 回到该命令。所以我有这个:
Python 2.7.3 (default, Sep 26 2012, 21:51:14)
[GCC 4.7.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>>
我已经尝试更改符号链接,/usr/bin/python
但没有作用 :(。我还担心某些程序会崩溃。
答案1
sudo rm /usr/local/bin/python
成功了。
答案2
尝试运行sudo update-alternatives --config python