【发布时间】:2012-05-10 17:59:05
【问题描述】:
我正在尝试在 Mint 12 上安装 M2Crypto for python。我已执行 `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 gcc swig m2crypto linux-mint