ubuntu 装 pip scrapy 失败的可能解决办法

it2022-05-09  22

在ubuntu 下pip install scrapy 多次出错,百度搜索发现

build/temp.linux-x86_64-3.5/_openssl.c:434:30: fatal error: openssl/opensslv.h: No such file or directorycompilation terminated.error: command 'x86_64-linux-gnu-gcc' failed with exit status 1----------------------------------------Command "/home/bbxinwen/env/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-dxddljg2/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-e0ttc0ig-record/install-record.txt --single-version-externally-managed --compile --install-headers /home/bbxinwen/env/include/site/python3.5/cryptography" failed with error code 1 in /tmp/pip-build-dxddljg2/cryptography/

出现这个或者fatal error: openssl/名单.h: No such file or directory。都是没有安装libssl-dev~

libssl-dev包含libraries, header files and manpages,他是openssl的一部分,而openssl对ssl进行了实现~

解决方案:

使用sudo apt-get install libssl-dev来安装libssl-dev即可

 

转自 

http://blog.csdn.net/xxxxxx91116/article/details/7927520

转载于:https://www.cnblogs.com/dahefuzi/p/7149064.html


最新回复(0)