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

Posted on

Question :

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

I’m trying to install Scrapy, but got this error during installing: buildtemp.win-amd64-2.7Release_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-Win64includeopenssl”. And I’ve also included this “C:OpenSSL-Win64include” 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

Asked By: kiral

||

Answer #1:

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

set LIB=C:OpenSSL-win64lib;%LIB%
set INCLUDE=C:OpenSSL-win64include;%INCLUDE%

See here for more information

Answered By: ECH

Answer #2:

Copy “openssl” folder from C:OpenSSL-Win32include to C:Pyhton27include

and copy all libs from C:OpenSSL-win32lib to C:Python27Libs

Answered By: Ehsan Ae

Leave a Reply

Your email address will not be published. Required fields are marked *