ubuntu - Broken 'python' command -


i'm trying install python module, , realized python command seems broken:

$ python bash: /usr/bin/python: no such file or directory 

i've been told problematic os aswell (i noticed software center not working). how can fix , link python 3.2?
i'm running ubuntu 12.04.
thanks!

you have broken link.

you can check below:

find /usr/bin -maxdepth 1 | grep python | xargs ls -l -rwxr-xr-x 1 root root   30284 jun 18  2013 /usr/bin/dh_python2 lrwxrwxrwx 1 root root       9 may  8 16:43 /usr/bin/python -> python2.7 lrwxrwxrwx 1 root root       9 may  8 16:43 /usr/bin/python2 -> python2.7 -rwxr-xr-x 1 root root 2993744 feb 27 20:24 /usr/bin/python2.7 

as can see /usr/bin/python points /usr/bin/python2.7 exist.

if /usr/bin/python broken , have /usr/bin/python3.2, following:

rm /usr/bin/python; ln -s /usr/bin/python3.2 /usr/bin/python 

this delete symlink , create new 1 pointing right place.


Comments

Popular posts from this blog

javascript - RequestAnimationFrame not working when exiting fullscreen switching space on Safari -

Python ctypes access violation with const pointer arguments -