I have been fiddling with my Python installation on Ubuntu 12.04 (I was having trouble installing a python library), and at one point my python
command wasn't working. It turned out the symlink was missing (I must have removed it by accident lol), so I made a new one pointing to Python 3.2 (originally pointed to 2.7):
sudo rm /usr/bin/python
sudo ln -s /usr/bin/python3.2 /usr/bin/python
Problem: the software center and update manager weren't working:
~$ software-center
File "/usr/bin/software-center", line 152
print time.time()
^
SyntaxError: invalid syntax
I guessed this was because I had changed the default python version (2.7->3.2), so I changed it back to 2.7. Now they work fine, but I'd still like to change the 'default' python version (i.e. the one called with python
in the terminal).
Is it possible to do that in Ubuntu 12.04?
Thanks!