严重错误C1083:无法打开包含文件:'openssl/opensslv.h' [英] Fatal error C1083: Cannot open include file: 'openssl/opensslv.h'
问题描述
我正在尝试安装Scrapy,但在安装过程中出现此错误:build \ temp.win-amd64-2.7 \ Release_openssl.c(429):致命错误C1083:无法打开包含文件:'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
我已经检查文件"opensslv.h"在这里"C:\ OpenSSL-Win64 \ include \ openssl".而且我还在路径系统变量中包括了这个"C:\ OpenSSL-Win64 \ include".
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.
对于"cryptography-1.5.2"包也发现了相同的问题
The same issue was found for the "cryptography-1.5.2" package
推荐答案
设置这两个环境值对我来说就是固定的,之后pip install cryptography
开始起作用:
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%
有关详情,请参见此处
这篇关于严重错误C1083:无法打开包含文件:'openssl/opensslv.h'的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!