How to change the default python version in Ubuntu 9.10
Sometimes you need to change the default Python version of your OS.
For Ubuntu you can accomplish that by editing the "debian_defaults" file.
1. Go to:
$ cd /usr/share/python
$ sudo nano debian_defaults
2. Change the version as needed:
# the default python version
default-version = python2.5
# all supported python versions
supported-versions = python2.5, python2.6
# formerly supported python versions
old-versions = python2.3, python2.4
# unsupported versions, including older versions
unsupported-versions = python2.3, python2.4
Go to:
$ cd /usr/bin
$ ls -la
You should see some symlinks like python -> python2.6
$ sudo rm python
$ sudo ln -s python2.5 python
4. You can change the symlinks later on. BE ADVISED some applications depend on python2.6, so changing the symlink to python2.5 might cause a crash. You can change the symlink back to 2.6 if that happens. Hope that helps! Cheers.
- fl0's blog
- 1896 reads
Recent blog posts
- Convert mov, mp4, avi, flv to ogv | ffmpeg2theora
- Stop Disabling SELinux! | Drupal and SELinux, Drupal doesn't send mails [SOLVED]
- Blender 2.59 + iCub SIM + Kinect = Movement Imitation
- Blender 2.59 + Kinect = Controlling Robot Arms in Game Engine
- Virtual (robot) Flobi - Motion Capture Playback Demo
- LimeSurvey | Default Password Change | Redirect to login page [SOLVED]
- Lighttpd | Can't have more connections than fds/2: 1024
- Warp1337 Theme for you!
- OpenNI Java Wrapper Test | Ubuntu 11.10
- Web history with Screenshots and stuff | Web archive
What is Flattr ? Flattr is the worlds first social micro-payment system The idea had already been initiated in 2007, but the first release was in 2010 due to typical geeky laziness. Flattr was founded to help people share money, not just content. https://flattr.com/about

















Comments
Post new comment