我试图安装M2Crypto因为我执行`蟒蛇setup.py建立在薄荷12 Python,但构建失败,说明
error: command 'gcc' failed with exit status 1
前述2条线表明,可能存在与Python.h一个问题:
SWIG/_m2crypto_wrap.c:126:20: fatal error: Python.h: No such file or directory
compilation terminated
如果有人知道需要做修复这算什么,请让我知道。
编辑
我试图安装python-dev
,但我得到了以下错误:
The following packages have unmet dependencies:
python-dev: Depends: python (= 2.6.6-2ubuntu1) but 2.7.2-7ubuntu2 is to be installed
E: Unable to correct problems, you have held broken packages