A lot of Ubuntu packages use python. They also install modules in /usr/lib/pythonX.Y
where (X.Y
is your default python version).
The python packaging system only provides those modules for the default python.
If you change your default python, it would become your responsibility to provide those modules for the new version of python or else your system will break.
Therefore, unless you really know what you are doing (i.e. you are willing to port and maintain all those modules), I would strongly recommend not trying to change the default version of python.
Instead use virtualenv
and virtualenvwrapper
to allow you to switch versions at the user level.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…