简体   繁体   English

Ubuntu 16.04 将 python 从 2.7 升级到 3.6 然后再次将 2.7 设置为默认值后,终端未打开

[英]Ubuntu 16.04 Terminal not opening after upgarding python from 2.7 to 3.6 and then again setting 2.7 as default

I used this tutorial to upgrade to python 3.6 since I couldn't use pip and many answers said that pip dropped the support of python 2.7. I used this tutorial to upgrade to python 3.6 since I couldn't use pip and many answers said that pip dropped the support of python 2.7. But now I can't open terminal.但是现在我无法打开终端。 Some answers suggested going back to default version will help.一些建议回到默认版本的答案会有所帮助。 But in update alternatives list there was no python2.7, so I installed it and set it as default but still the terminal won't open.但是在更新替代列表中没有python2.7,所以我安装了它并将其设置为默认值,但终端仍然无法打开。 Any help is appreciated.任何帮助表示赞赏。 Thank you.谢谢你。

Ubuntu 16.04 is optimized for python 2.7 and python 3.5. Ubuntu 16.04 针对 python 2.7 和 python 3.5 进行了优化。 Perhaps when you installed Python 3.6, Ubuntu's default Python setting was set to 3.6.也许当您安装 Python 3.6 时,Ubuntu 的默认 Python 设置设置为 3.6。 So if you lower the python default setting to python 2.7 or python 3.5 it should work fine.因此,如果您将 python 默认设置降低到 python 2.7 或 python 3.5,它应该可以正常工作。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM