准备以下软件包: cryptography,openssl,perl(编译openssl需要)
编译openssl
打开vcvarsall.bat(计算机上须安装Visual Studio),在控制台命令提示符中切换到openssl目录。
执行perl Configure VC-WIN32msdo_ms.bat nmake -f msntdll.mak如果一切顺利的话,你将会在当前目录下的out32dll目录下看到一些dll和exe等。
安装cryptography打开vcvarsall.bat,切换到cryptography解压后的目录。键入以下命令set PATH=%PATH%;openssl源代码解压路径out32dllset LIB=openssl源代码解压路径out32dll;%LIB%set INCLUDE=openssl源代码解压路径include;%INCLUDE%python setup.py install如果一切顺利,拷贝openssl源代码解压路径out32dll目录下的libeay32.dll,ssleay32.dll到python安装位置Libsite-packagescryptography-0.3-py2.7-win32.eggcryptography
安装中曾遇到过的问题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入门技能树首页概览211764 人正在系统学习中 相关资源:专用的软件解决集墨棉使用寿命已尽-专业指导工具类资源-CSDN文库
声明:本站部分文章及图片源自用户投稿,如本站任何资料有侵权请您尽早请联系jinwei@zod.com.cn进行处理,非常感谢!