我正在尝试在 Mint 12 上为 python 安装 M2Crypto。我已经执行了 `python setup.py build,但构建失败,提示
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
最佳答案
看来您错过了包含 python.h
的 python-dev 包
关于python - 在 Mint 上安装 M2Crypto 时出现问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10539676/