微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

命令'x86_64-linux-gnu-gcc'失败,退出状态为1

我试图安装“学术”包,但我不断收到此错误

x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security -fPIC -I/usr/include/python2.7 -c build/temp.linux-x86_64-2.7/_openssl.c -o build/temp.linux-x86_64-2.7/build/temp.linux-x86_64-2.7/_openssl.o build/temp.linux-x86_64-2.7/_openssl.c:434:30: Fatal error: openssl/opensslv.h: No such file or directory compilation terminated. error: command 'x86_64-linux-gnu-gcc' Failed with exit status 1 Command "/usr/bin/python -u -c "import setuptools,tokenize;__file__='/tmp/pip-build-0OXGEx/cryptography/setup.py';exec(compile(getattr(tokenize,'open',open)(__file__).read().replace('rn','n'),__file__,'exec'))" install --record /tmp/pip-EdgZGB-record/install-record.txt --single-version-externally-managed --compile" Failed with error code 1 in /tmp/pip-build-0OXGEx/cryptography/

已经尝试了下面的post中的解决scheme,但它没有工作:

pip安装lxml错误

当编译不同的程序时,sizeof返回一个结构体的不同值

如何让scanf读取超过4095个字符作为input?

传递一个指向exec()的进程的指针

有没有可能用gcc以外的东西编译Linux内核

链接时LD_LIBRARY_PATH和-L有什么区别?

移植Windows代码,使用什么而不是__int64 _tmain和_TCHAR *?

链接库与gcc:参数的顺序

在运行时检查libxml2.so的构build参数

MinGW-w64的gcc和Address Sanitizer

使:完全无视规则

我有同样的问题。 这个帮了我:

sudo apt-get install build-essential libssl-dev libffi-dev python-dev

如果您使用python3,请尝试用python3-dev替换python-dev python3-dev

安装lib32ncurses5-dev:

sudo apt-get install lib32ncurses5-dev

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。

相关推荐