I need to uninstall python 2.7.6 and install 2.6 instead. how can I manage that. which python command gives (/usr/bin/python). my environment is ubuntu 14.04.
1 Answer
You could try:
apt-get remove python2.7
Don't remove python 2.7, instead have both at the same time
Insert the following in /etc/apt/sources.list
:
deb http://ppa.launchpad.net/fkrull/deadsnakes/ubuntu trusty main
deb-src http://ppa.launchpad.net/fkrull/deadsnakes/ubuntu trusty main
Or use another PPA of your choice. Then run:
apt-get update
apt-get install python2.6
Disclaimer: The PPA is just one I found on Google, no guarantees.
-
2You don't remove python2.7 in versions of Ubuntu before 16.04. Too many things depend it on. It's a nice way to nuke your desktop.– muruApr 21, 2016 at 12:36
-
it is quite late answer. Many part of the system have been broken and I am trying to figure out how to fix that– Omar AliApr 21, 2016 at 13:04
-
-
Can't you just reinstall it again?
sudo apt-get install --reinstall python2.7
– TimoApr 22, 2016 at 8:47 -
once the system collapse the terminal is gone and everything went bad. I had to re-install ubuntu :)– Omar AliApr 25, 2016 at 14:24