在Windows 64中为Python 2.7导入Pyopenssl

在Windows 64中为Python 2.7导入Pyopenssl,python,python-2.7,pyopenssl,Python,Python 2.7,Pyopenssl,我需要在python代码中使用pyOpenSSL。我正在尝试使用easy_install安装软件包。我得到以下错误: C:\Users\xxx>easy\u安装pyopenssl 搜索pyopenssl 最佳匹配:pyopenssl 16.2.0 处理pyopenssl-16.2.0-py2.7.0 pyopenssl 16.2.0已经是easy-install.pth中的活动版本 使用c:\python27\lib\site packages\pyopenssl-16.2.0-py2.7.eg

我需要在python代码中使用pyOpenSSL。我正在尝试使用easy_install安装软件包。我得到以下错误:

C:\Users\xxx>easy\u安装pyopenssl
搜索pyopenssl
最佳匹配:pyopenssl 16.2.0
处理pyopenssl-16.2.0-py2.7.0
pyopenssl 16.2.0已经是easy-install.pth中的活动版本
使用c:\python27\lib\site packages\pyopenssl-16.2.0-py2.7.egg
处理pyopenssl的依赖项
搜索加密>=1.3.4
阅读https://pypi.python.org/simple/cryptography/
最佳匹配:加密1.7.1
正在下载https://pypi.python.org/packages/82/f7/d6dfd7595910a20a563a83a762bf79a253c4df71759c3b228accb3d7e5e4/cryptography-1.7.1.tar.gz#md5=2f63dee6ace602d1d20d1995f8538015
处理加密-1.7.1.tar.gz
编写c:\users\xxx\appdata\local\temp\easy\u install-7lajgq\cryptography-1.7.1\setup.cfg
运行cryptography-1.7.1\setup.py-q bdist\u egg--dist dir c:\users\xxx\appdata\local\temp\easy\u install-7lajgq\cryptography-1.7.1\egg dist tmp shxong
未找到与“docs\\u build”匹配的以前包含的目录
警告:在“vectors”目录下找不到以前包含的与“*”匹配的文件
_openssl.c
build\temp.win-amd64-2.7\Release\\u openssl.c(434):致命错误C1083:无法打开包含文件:“openssl/opensslv.h”:没有此类文件或目录
错误:安装脚本退出错误:命令“C:\xxxx \AppDATAB\\Studio\MULTI\\\\\\\\\\\\\p\\\\vc\bin \AMD64 \C.exe”的“VisualC++”退出状态失败,2,微软

问题是什么?

无法打开include文件:“openssl/opensslv.h”:没有这样的文件或目录
您能建议如何解决吗?有什么我需要安装的吗?在我看来,为了安装OpenSSL的Python绑定,你应该先安装OpenSSL的“普通”C+asm版本,然后再尝试构建PyOpenSSL。
无法打开包含文件:“OpenSSL/opensslv.h”:没有这样的文件或目录
你能建议如何解决它吗?有什么我需要安装的吗?在我看来,为了安装OpenSSL的Python绑定,应该先安装OpenSSL的“普通”C+asm版本,然后再尝试构建PyOpenSSL。