Pip install cryptography in windows

前端 未结 1 1005
难免孤独
难免孤独 2021-01-13 11:36

I\'m get the following error when running pip install cryptography:

build\\temp.win32-2.7\\Release\\_openssl.c(434) : fatal error C1083: Cannot op

1条回答
  •  北恋
    北恋 (楼主)
    2021-01-13 12:04

    Installing openssl and changing environment variables fixed this problem for me.

    • Install OpenSSL by using the installer from here: https://slproweb.com/products/Win32OpenSSL.html
    • Use the Win32OpenSSL-1_1_0f, even if your system is 64 bit (I tried installing the 64 bit version of OpenSSL and this did not fix the problem)
    • The following two folders should now exist: C:\OpenSSL-Win32\include, C:\OpenSSL-Win32\lib
    • Open a cmd line terminal and run the following:
    • > set INCLUDE=C:\OpenSSL-Win32\include;%INCLUDE%
    • > set LIB=C:\OpenSSL-Win32\lib;%LIB%
    • > pip install cryptography

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