Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

like image 763
kiral Avatar asked Jun 21 '16 17:06

kiral


Video Answer


1 Answers

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

like image 158
ECH Avatar answered Sep 19 '22 16:09

ECH