Change Default Python Version

Created on Oct. 16, 2012, 7:25 p.m. by Hevok & updated by Hevok on May 2, 2013, 5:13 p.m.

The default Python version can easily be defined.

Lets assume we want to switch from Python2.6 to Python2.7

First, edit the /usr/share/python/debian_defaults and change the default version arg to python2.7

Then: ::

sudo mv /usr/bin/python /usr/bin/python26
sudo ln -s /usr/bin/python2.7 /usr/bin/python

Tags: version, instruction
Categories: Tutorial
Parent: Python

Update entry (Admin) | See changes

Comment on This Data Unit