Python 官方文档:入门教程 => 点击学习
准备以下软件包: cryptography,openssl,perl(编译openssl需要) 编译openssl 打开vcvarsall.bat(计算机上须安装Visual Studio),在控制台命令提示符中切换到openssl目录。
执行
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
--结束END--
本文标题: 在windows上安装Python cr
本文链接: https://www.lsjlt.com/news/186722.html(转载时请注明来源链接)
有问题或投稿请发送至: 邮箱/279061341@qq.com QQ/279061341
下载Word文档到电脑,方便收藏和打印~
2024-03-01
2024-03-01
2024-03-01
2024-02-29
2024-02-29
2024-02-29
2024-02-29
2024-02-29
2024-02-29
2024-02-29
回答
回答
回答
回答
回答
回答
回答
回答
回答
回答
0