在ubuntu下写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