简体   繁体   中英

Fatal error C1083: Cannot open include file: 'openssl/opensslv.h'

I'm trying to install Scrapy, but got this error during installing: build\\temp.win-amd64-2.7\\Release_openssl.c(429) : fatal error C1083: Cannot open include file: 'openssl/opensslv.h': No such file or directory

I've checked that the file "opensslv.h" is in here "C:\\OpenSSL-Win64\\include\\openssl". And I've also included this "C:\\OpenSSL-Win64\\include" in the Path, system variables.

Stuck on this for hours, can someone please help out? Thanks.

The same issue was found for the "cryptography-1.5.2" package

Setting these two environment values fixed it for me, after which pip install cryptography worked:

set LIB=C:\OpenSSL-win64\lib;%LIB%
set INCLUDE=C:\OpenSSL-win64\include;%INCLUDE%

See here for more information

Copy "openssl" folder from C:\\OpenSSL-Win32\\include\\ to C:\\Pyhton27\\include\\

and copy all libs from C:\\OpenSSL-win32\\lib to C:\\Python27\\Libs\\

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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