[Python] Windows 下安裝 pyopenssl 時出現錯誤

緊接著 [Python] Windows 下安裝 pycrypto 時出現錯誤 又遇到個問題是在安裝 pyopenssl 的時候噴了下面的錯誤

解決方案:

  1. 安裝 Win32OpenSSL 32-bit 版
  2. C:\Program Files (x86)\OpenSSL-Win32\include\openssl\ 複製到目標環境 C:\git\App\venv\Include\openssl\
  3. C:\Program Files (x86)\OpenSSL-Win32\lib\ 複製到 C:\git\App\venv\libs
  4. 重新安裝 pyopenssl

 

參考:

  1. Fatal error C1083: Cannot open include file: ‘openssl/opensslv.h’
  2. Building cryptography on Windows


這裡的資訊對您有用嗎?歡迎斗內給我