发布时间:2019-08-28 09:09:04编辑:auto阅读(2720)
执行
perl Configure VC-WIN32
ms\do_ms.bat
nmake -f ms\ntdll.mak
如果一切顺利的话,你将会在当前目录下的out32dll目录下看到一些dll和exe等。
打开vcvarsall.bat,切换到cryptography解压后的目录。
键入以下命令
set PATH=%PATH%;openssl源代码解压路径\out32dll
set LIB=openssl源代码解压路径\out32dll;%LIB%
set INCLUDE=openssl源代码解压路径\include;%INCLUDE%
python setup.py install
如果一切顺利,拷贝openssl源代码解压路径\out32dll目录下的libeay32.dll,ssleay32.dll到python安装位置\Lib\site-packages\cryptography-0.3-py2.7-win32.egg\cryptography安装中曾遇到过的问题
cffi.ffiplatform.VerificationError: importing 'C:\\Python27\\lib\\site-packages\\cryptogr\_Cryptography_cffi_48bbf0ebx93c91939.pyd': DLL load failed: The operating system cannot
出现这个问题是因为为安装过程中需要libeay32.dll,ssleay32.dll
参考: getting-error-dll-load-failed-the-operating-system-cannot-run-1-python-2-7
上一篇: Python语句
下一篇: Python读取NGINX日志将其存入数
55116
41918
36501
31906
26813
26482
25020
20643
16552
15965
3179°
2876°
2969°
3120°
3052°
3327°
3225°
3056°
3049°
3027°