[英]Python - whoops - installed Python2.6 when I have 2.7 - default is now 2.6 - want 2.7 back
I am on ubuntu 11.10. 我正在使用Ubuntu 11.10。 I installed python2.6 becuased I have to work in a virtualenv. 我安装了python2.6,因为我必须在virtualenv中工作。
On the command line, when I start python, the default is python2.6. 在命令行上,当我启动python时,默认值为python2.6。
which python
/usr/local/bin/python
Python 2.6.8 (unknown, Jul 4 2012, 09:17:51)
[GCC 4.5.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
How do I change back to python2.7 for the default? 如何更改回默认的python2.7?
check python at this place: 在此检查python:
/usr/bin/python
it should be your original python 2.7, or you can find python2.7 by: 它应该是原始的python 2.7,或者您可以通过以下方式找到python2.7:
ls /usr/bin | grep python
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.