
root rm /usr/bin/python ln -s python2.7 /usr/bin/python exit
#! /usr/bin/env python2.7
| The Following 5 Users Say Thank You to AapoRantalainen For This Useful Post: | ||
python2.7 /path/to/script.py
| The Following User Says Thank You to Android_808 For This Useful Post: | ||
| The Following User Says Thank You to marmistrz For This Useful Post: | ||
| The Following 2 Users Say Thank You to misiak For This Useful Post: | ||
$ sudo apt-get install python2.7 Reading package lists... Done Building dependency tree Reading state information... Done The following extra packages will be installed: python2.7-minimal Suggested packages: python2.7-doc binutils binfmt-support The following NEW packages will be installed: python2.7 python2.7-minimal 0 upgraded, 2 newly installed, 0 to remove and 1 not upgraded. Need to get 0B/4098kB of archives. After this operation, 15,2MB of additional disk space will be used. Do you want to continue [Y/n]? y Selecting previously deselected package python2.7-minimal. (Reading database ... 52018 files and directories currently installed.) Unpacking python2.7-minimal (from .../python2.7-minimal_2.7.3~rc2-2.1-maemo9_armel.deb) ... Selecting previously deselected package python2.7. Unpacking python2.7 (from .../python2.7_2.7.3~rc2-2.1-maemo9_armel.deb) ... Setting up python2.7-minimal (2.7.3~rc2-2.1-maemo9) ... python2.7: can't open file '/usr/lib/python2.7/py_compile.py': [Errno 2] No such file or directory Linking and byte-compiling packages for runtime python2.7... INFO: using unknown version '/usr/bin/python2.7' (debian_defaults not up-to-date?) rmdir /var/lib/python Setting up python2.7 (2.7.3~rc2-2.1-maemo9) ... python2.7: can't open file '/usr/lib/python2.7/py_compile.py': [Errno 2] No such file or directory