View Single Post
Posts: 839 | Thanked: 3,386 times | Joined on Mar 2009
#52
Originally Posted by nahci13 View Post
How I can replace new version with old version? when type and run "python" in x-terminal run python v2.7?
As stated it might not be safe to do, but using terminal
Code:
root
rm /usr/bin/python
ln -s python2.7 /usr/bin/python
exit
Explanation: /usr/bin/python is symlink to the python2.5 (you can see that with 'ls -al /usr/bin/python'). rm deletes old symlink, and ln -s creates it again but pointing to the python2.7

---
Better way is to start your script.py -file with row:
Code:
#! /usr/bin/env python2.7
And then 'chmod +x script.py' it and start it with './script.py', or if it is in the path just 'script.py'.
 

The Following 5 Users Say Thank You to AapoRantalainen For This Useful Post: