繁体   English   中英

致命错误 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':否这样的文件或目录

我已经检查过文件“opensslv.h”在此处“C:\\OpenSSL-Win64\\include\\openssl”。 而且我还在系统变量路径中包含了这个“C:\\OpenSSL-Win64\\include”。

坚持了几个小时,有人可以帮忙吗? 谢谢。

在“cryptography-1.5.2”包中发现了同样的问题

设置这两个环境值为我修复了它,之后pip install cryptography起作用了:

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

请参阅此处了解更多信息

将“openssl”文件夹从 C:\\OpenSSL-Win32\\include\\ 复制到 C:\\Pyhton27\\include\\

并将所有库从 C:\\OpenSSL-win32\\lib 复制到 C:\\Python27\\Libs\\

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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