Python 安装加密1.8.1模块时出错
我安装了64位Windows 7和32位python 2.7.13。 我还为Python2.7安装了VC 我正在尝试安装Python 安装加密1.8.1模块时出错,python,visual-studio,cryptography,paramiko,Python,Visual Studio,Cryptography,Paramiko,我安装了64位Windows 7和32位python 2.7.13。 我还为Python2.7安装了VC 我正在尝试安装paramiko 2.1.2。安装cryptography 1.8.1时出现错误 因此,我尝试安装cryptography 1.8.1separatley。但当我尝试这样做时,会出现以下错误: build\temp.win32-2.7\Release\_openssl.c(434) : fatal error C1083: Cannot open in clude file:
paramiko 2.1.2
。安装cryptography 1.8.1
时出现错误
因此,我尝试安装cryptography 1.8.1
separatley。但当我尝试这样做时,会出现以下错误:
build\temp.win32-2.7\Release\_openssl.c(434) : fatal error C1083: Cannot open in
clude file: 'openssl/opensslv.h': No such file or directory
error: command 'C:\\Users\\b_ozel\\AppData\\Local\\Programs\\Common\\Microsoft\\
Visual C++ for Python\\9.0\\VC\\Bin\\cl.exe' failed with exit status 2
有什么问题吗?我使用
pip
安装了cryptography
,而不是手动安装。如果您不介意从二进制文件安装加密软件包,而不是从源代码编译,请确保您的pip版本高于8
Python2.7附带的pip版本非常旧(1.x),它只理解从源代码安装加密(和paramiko)
要升级pip,请执行以下操作:
pip install --upgrade pip
你安装了OpenSSL吗?谢谢你,pip解决了这个问题。但是我不明白为什么
python setup.py安装
不能与加密技术1.8.1一起工作,我从python官方网站下载了zip文件。