我在安装时遇到问题python-dev
。当我尝试安装另一个Python软件包并收到错误消息时,一切都开始了:
SystemError: Cannot compile 'Python.h'. Perhaps you need to install python-dev.
我试过sudo apt-get install python-dev
但出现错误:
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.
所以我尝试sudo apt-get install python2.7-dev
并得到了错误:
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
我已经尝试了未满足的依赖项中的大多数内容。我正在运行Ubuntu 12.04,并且所有内容均已更新。我已经做了apt-get clean
和apt-get autoclean
。我已经尝试过apt-get -f install
该主题的所有变体。我已经清理了我的PPA。我什至尝试使用Aptitude,尽管进行了大量清理,但结果是相同的。
我真的很希望能够安装python-dev。我怎样才能做到这一点?在这一点上,我愿意考虑极端选择,无论它们可能是什么。
--system-site-packages
。
sudo apt-get update && sudo apt-get upgrade && sudo apt-get dist-upgrade
。将输出粘贴到paste.ubuntu.com