I am having trouble installing
python-dev. It all started when I tried to install another Python package and got the error:
SystemError: Cannot compile 'Python.h'. Perhaps you need to install python-dev.
sudo apt-get install python-dev but got the error:
The following packages have unmet dependencies: python-dev : Depends: python2.7-dev (>= 2.7.3) but it is not going to be installed E: Unable to correct problems, you have held broken packages.
So then I tried
sudo apt-get install python2.7-dev and got the error:
The following packages have unmet dependencies: python2.7-dev : Depends: python2.7 (= 2.7.3-0ubuntu3) but 2.7.3-0ubuntu3.1 is to be installed Depends: libpython2.7 (= 2.7.3-0ubuntu3) but 2.7.3-0ubuntu3.1 is to be installed
I have tried most everything in the post unmet dependencies. I am running Ubuntu 12.04 and I have everything updated. I have done
apt-get clean and
apt-get autoclean. I have tried
apt-get -f install and all variations on that theme. I have cleaned up my PPA. I even tried using Aptitude, and though it did a lot of clean up, the result was the same.
I really want to be able to install python-dev. How can I make this happen? At this point, I am willing to consider extreme options, whatever they may be.