简体   繁体   中英

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. I installed python2.6 becuased I have to work in a virtualenv.

On the command line, when I start python, the default is 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?

check python at this place:

/usr/bin/python

it should be your original python 2.7, or you can find python2.7 by:

ls /usr/bin | grep python

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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