无法安装python模块";Pycrypto-2.3“;

无法安装python模块";Pycrypto-2.3“;,python,Python,我尝试安装python模块“Pycrypto-2.3”,但它给出了以下一长串错误: 正在运行的安装 运行构建 运行build\u py 运行build_ext 正在生成“加密公钥.\u fastmath”扩展 /usr/lib/python2.6/pycc-std=c99-O3-fomit帧指针-Isrc/-I/usr/include/python2.6 -c src/_fastmath.c-o build/temp.solaris-2.11-i86pc-2.6/src/_fastmath.o

我尝试安装python模块“Pycrypto-2.3”,但它给出了以下一长串错误:

正在运行的安装

运行构建

运行build\u py

运行build_ext

正在生成“加密公钥.\u fastmath”扩展

/usr/lib/python2.6/pycc-std=c99-O3-fomit帧指针-Isrc/-I/usr/include/python2.6

-c src/_fastmath.c-o build/temp.solaris-2.11-i86pc-2.6/src/_fastmath.o

在/usr/include/python2.6/Python.h:8中包含的文件中

从src/_fastmath.c:32:

/usr/include/python2.6/pyconfig.h:969:1:警告:“\u文件\u偏移量\u位”已重新定义

在/usr/include/stdio.h:37中包含的文件中

从src/_fastmath.c:30:

/usr/include/sys/feature_tests.h:209:1:警告:这是上一个

定义

src/_fastmath.c:34:17:gmp.h:没有这样的文件或目录

src/_fastmath.c:39:error:n前面的语法错误

src/_fastmath.c:42:error:m前面的语法错误

清单很长。虽然我已经按照正确的安装步骤进行了安装。但是有人能帮我吗

找出问题所在, 谢谢

以下错误:

src/_fastmath.c:34:17: gmp.h: No such file or directory

可能是你的问题的原因。它是“gnu多精度库”的一部分,您需要它的“开发”部分。关于Debian。这个包是libgmp2-dev,对于Redhat来说是gmp-devel。对于其他平台,您必须搜索自己。

在Solaris上,您似乎必须找到源代码:


它有很好的说明和支持。

您在哪个平台上构建?