Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

When i do the command python i get the folowing.

Python 2.6.8 (unknown, Apr  9 2013, 19:12:12) 
[GCC 4.7.2] on linux3
Type "help", "copyright", "credits" or "license" for more information.

I want to have python2.7 back to that command. so i have this:

Python 2.7.3 (default, Sep 26 2012, 21:51:14) 
[GCC 4.7.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> 

I have already tried to change the symlink in /usr/bin/python but don't work :(. I am also afraid that some programs will break.

share|improve this question
    
How did you get the 2.6.8 version? –  chin Apr 14 '13 at 15:21
    
Becouse i was solving this question. askubuntu.com/questions/279630/… –  Thomas15v Apr 15 '13 at 19:59

2 Answers 2

up vote 2 down vote accepted
sudo rm /usr/local/bin/python

Did the trick.

share|improve this answer
    
Glad you got it sorted, sorry I couldn't work out what was wrong :) –  handuel Apr 10 '13 at 10:56

Try running sudo update-alternatives --config python

share|improve this answer
    
Don't work get error: update-alternatives: error: no alternatives for python –  Thomas15v Apr 10 '13 at 10:05
    
Odd... how did the symlink "not work" by the way, because that's definitely the obvious way of doing it. –  handuel Apr 10 '13 at 10:06
1  
which python to make sure he didn't mangle up his path in .profile or .bash_rc –  hbdgaf Apr 10 '13 at 10:24
    
The output of which python is /usr/local/bin/python. –  Thomas15v Apr 10 '13 at 10:31
    
In that case change the symlink for /usr/local/bin/python and /usr/bin/python, to be on the safe side. –  handuel Apr 10 '13 at 10:32

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.