简体   繁体   English

无法安装python模块“ Pycrypto-2.3”

[英]Not able to install a python module “Pycrypto-2.3”

I tried installing a python module "Pycrypto-2.3".But its giving the following long list of errors: 我尝试安装python模块“ Pycrypto-2.3”。但是它给出了以下错误列表:

running install 运行安装

running build 运行构建

running build_py 运行build_py

running build_ext 运行build_ext

building 'Crypto.PublicKey._fastmath' extension 建立'Crypto.PublicKey._fastmath'扩展名

/usr/lib/python2.6/pycc -std=c99 -O3 -fomit-frame-pointer -Isrc/ -I/usr/include/python2.6 /usr/lib/python2.6/pycc -std = c99 -O3 -fomit-frame-pointer -Isrc / -I / usr / include / python2.6

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

In file included from /usr/include/python2.6/Python.h:8, 在/usr/include/python2.6/Python.h:8包含的文件中,

from src/_fastmath.c:32: 来自src / _fastmath.c:32:

/usr/include/python2.6/pyconfig.h:969:1: warning: "_FILE_OFFSET_BITS" redefined /usr/include/python2.6/pyconfig.h:969:1:警告:“ _ FILE_OFFSET_BITS”已重新定义

In file included from /usr/include/stdio.h:37, 在/usr/include/stdio.h:37包含的文件中,

from src/_fastmath.c:30: 来自src / _fastmath.c:30:

/usr/include/sys/feature_tests.h:209:1: warning: this is the location of the previous /usr/include/sys/feature_tests.h:209:1:警告:这是前一个的位置

definition 定义

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

src/_fastmath.c:39: error: syntax error before "n" src / _fastmath.c:39:错误:“ n”之前的语法错误

src/_fastmath.c:42: error: syntax error before "m" src / _fastmath.c:42:错误:“ m”之前的语法错误

The list is long.Though i have followed the correct steps of installation..Can anyone 列表很长。尽管我遵循了正确的安装步骤。

identify the problem, Thanks.. 确定问题,谢谢..

The following error: 出现以下错误:

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

is probably the cause of your problems. 可能是您遇到问题的原因。 It's part of the "gnu multiprecision library", and you need the "dev" part of it. 它是“ gnu multiprecision库”的一部分,您需要其中的“ dev”部分。 On Debian. 在Debian上。 the package is libgmp2-dev, for Redhat it's gmp-devel. 软件包是libgmp2-dev,对于Redhat来说是gmp-devel。 For other platforms you'll have to search yourself. 对于其他平台,您必须进行自我搜索。

It seems that as your on Solaris your going to have to go to the source: 看来,在Solaris上,您必须转到源代码:

GMPlib GMPlib

It has good instructions and support there. 它在那里有很好的说明和支持。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM