在windows上安装Python cryptography的过程和遇到的问题
2018-03-07 21:50
811 查看
准备以下软件包: cryptography,openssl,perl(编译openssl需要)
编译openssl
打开vcvarsall.bat(计算机上须安装Visual Studio),在控制台命令提示符中切换到openssl目录。
执行
安装cryptography
安装中曾遇到过的问题
出现这个问题是因为为安装过程中需要libeay32.dll,ssleay32.dll
参考: getting-error-dll-load-failed-the-operating-system-cannot-run-1-python-2-7
编译openssl
打开vcvarsall.bat(计算机上须安装Visual Studio),在控制台命令提示符中切换到openssl目录。
执行
perl Configure VC-WIN32 ms\do_ms.bat nmake -f ms\ntdll.mak 如果一切顺利的话,你将会在当前目录下的out32dll目录下看到一些dll和exe等。
安装cryptography
打开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
相关文章推荐
- Windows下Python第三方库lxml安装过程中遇到的问题
- 把程序安装成windows服务的过程及遇到的问题
- windows环境下安装python MySQLdb遇到的问题以及解决方案
- 安装python caffe过程中遇到的一些问题以及对应的解决方案
- windows环境下python安装pycrypto遇到的问题解决
- windows下安装python basemap时使用Visual Studio编译geos时遇到的问题以及解决方法
- 关于Python安装和pip更新过程中遇到的问题及解决方案
- python中安装cx_Oracle过程中遇到的问题及解决方法
- python3.6中安装xgboost过程及遇到的问题解决
- windows下python使用pip命令安装builtwith库时,遇到的utf-8问题的解决
- Windows XP Embedded安装过程中遇到的问题
- [Python]Windows下安装PIL遇到的问题
- python安装过程中可能遇到的问题
- python库numpy,scipy,matplotlib安装配置过程中遇到的问题及解决方法
- Windows下构建和发布Python模块过程中遇到的问题
- python mysql驱动安装过程中遇到的问题
- Windows下安装Python和matplotlib遇到的问题及解决方案
- 深度学习python库安装经验,Windows下安装Anaconda3 pycharm tensorflow keras theano中遇到的问题
- Python安装过程遇到的问题及解决
- Windows下安装python MySQLdb遇到的问题及解决方法