Fixing python –version errors

finding the python path is quite easy..most links reside in the /usr/bin

$ ls -l /usr/bin/python*\
lrwxrwxrwx 1 root root      18 2012-12-11 10:08 /usr/bin/python -> /usr/bin/python2.5
-rwxr-xr-x 1 root root 2739512 2012-07-21 01:54 /usr/bin/python2.7
lrwxrwxrwx 1 root root       9 2011-10-05 23:53 /usr/bin/python3 -> python3.2
lrwxrwxrwx 1 root root      11 2012-10-20 06:15 /usr/bin/python3.2 -> python3.2mu

remove the the current version by unlinking with the command:

$ sudo rm /usr/bin/python

Then link with the preferable version

sudo ln -s /usr/bin/python3.2 /usr/bin/python

 

Advertisements
%d bloggers like this: