首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >gcc错误安装python密码系统centos 7 64

gcc错误安装python密码系统centos 7 64
EN

Stack Overflow用户
提问于 2017-02-06 08:39:14
回答 1查看 2.2K关注 0票数 0

我有一个Centos 7 64位更新。我试图使用以下命令安装python密码学:

代码语言:javascript
复制
 pip install cryptography

但我收到了一条错误消息:

代码语言:javascript
复制
Failed to build cryptography
Installing collected packages: cryptography
Running setup.py install for cryptography ... error
Complete output from command /usr/bin/python3.4 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-lulu_cn7/cryptography/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-2t0eqhin-record/install-record.txt --single-version-externally-managed --compile:

gcc -pthread -Wno-unused-result -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -I/usr/include/python3.4m -c build/temp.linux-x86_64-3.4/_openssl.c -o build/temp.linux-x86_64-3.4/build/temp.linux-x86_64-3.4/_openssl.o
build/temp.linux-x86_64-3.4/_openssl.c:12:24: fatal error: pyconfig.h: No such file or directory
 #  include <pyconfig.h>
                        ^
compilation terminated.
error: command 'gcc' failed with exit status 1

----------------------------------------
Command "/usr/bin/python3.4 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-lulu_cn7/cryptography/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-2t0eqhin-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-lulu_cn7/cryptography/

我到处寻找解决方案,但这里没有我的软件包的版本:

Python2.7.5 Python 3.4.5 pip9.0.1来自/usr/lib/python3.4/site-packages (python 3.4)

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2017-02-06 08:43:41

请执行yum install -y python34-devel,因为您缺少它提供的库。如果您没有这个包,那么您的存储库中可能没有EPEL。用yum install epel-release添加它。

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/42063468

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档