我根據this guide上Ubuntu 16.04
安裝Python 2.7.13
,併成爲默認版本的替代version 2.7.12
。但是,我想完全刪除Python 2.7.13
並返回version 2.7.12
作爲默認版本,因爲pip
命令不起作用,出現以下錯誤。如何完全在Ubuntu 16.04卸載蟒蛇2.7.13
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安裝!並且您的問題可能更適合此處:https://askubuntu.com/ –