我正在尝试在 Mint 12 上为 python 安装 M2Crypto。我已经执行了`python setup.py build,但构建失败,说明
error: command 'gcc' failed with exit status 1
前面两行说明 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