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

后端 未结 2 954
囚心锁ツ
囚心锁ツ 2020-11-30 11:38

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: \'opens

相关标签:
2条回答
  • 2020-11-30 11:47

    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

    0 讨论(0)
  • 2020-11-30 11:48

    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\

    0 讨论(0)
提交回复
热议问题