【发布时间】:2017-06-17 07:57:42
【问题描述】:
我根据this guide在Ubuntu 16.04上安装了Python 2.7.13,它成为了默认版本,作为2.7.12版本的替代。但是,我想完全删除 Python 2.7.13 并返回到版本 2.7.12 作为默认版本,因为 pip 命令不起作用,出现以下错误。
bash: /usr/local/bin/pip: /usr/bin/python: bad interpreter: No such file or directory
您能帮我如何从 Ubuntu 16.04 中完全删除 Python 2.7.13 吗?否则,您能否建议如何解决上述错误?
【问题讨论】:
-
在做任何其他事情之前我建议你运行
$ sudo apt install --reinstall python python-apt python2.7-minimal; ubuntu 依赖于一个有效的 python2 安装!你的问题可能更适合这里:askubuntu.com
标签: python python-2.7 ubuntu ubuntu-16.04