如何在 Windows 7 64 位上安装 PyOpenSSL? [英] How do I install PyOpenSSL on Windows 7 64-bit?

查看:57
本文介绍了如何在 Windows 7 64 位上安装 PyOpenSSL?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

为了让 Scrapy 在 HTTPS 上工作,我需要 PyOpenSSL,但我似乎无法让它发挥作用.

To get Scrapy working on HTTPS, I need PyOpenSSL, but I can't seem to get this to work.

那么,是否有可用的 64 位版本?我没有看到...我已经安装了 32 位版本,但是...

So, is there a 64-bit version available? I don't see one... I have installed the 32-bit version but...

我目前从 Scrapy 得到这个错误:

I currently get this error back from Scrapy:

ERROR: Error downloading <https://SOME_PRIVATE_URL_HERE>:  
  [Failure instance: Traceback: <class 'scrapy.exceptions.NotSupported'>:
  HTTPS not supported: install pyopenssl library

有人知道如何获取或编译 64 位版本吗?或者那是不必要的?

Does anyone have a clue how to obtain or compile a 64-bit version? Or is that unneccesary?

推荐答案

您的问题是未安装 PyOpenSSL.您没有说,但我从您的问题中推断您已经安装了 32 位版本的 PyOpenSSL,但使用的是 64 位版本的 Python.那行不通.

Your problem is that PyOpenSSL is not installed. You don't say, but I infer from your question that you have installed a 32 bit version of PyOpenSSL but are using a 64 bit version of Python. That won't work.

如果您真的无法获得 64 位版本的 PyOpenSSL,那么最简单,也可能是唯一的解决方案是安装 32 位版本的 Python、Scrapy 及其所有依赖项.如果您感到勇敢,那么您可以尝试从 64 位源代码进行编译,但我对 PyOpenSSL 的了解不够,无法说明这是否实用.

If you really can't get a 64 bit version of PyOpenSSL, then the simplest, and possibly the only, solution will be to install 32 bit versions of Python, Scrapy and all its dependencies. If you are feeling brave then you could attempt to compile from source for 64 bit but I don't know enough about PyOpenSSL to say whether or not that's practical.

这篇关于如何在 Windows 7 64 位上安装 PyOpenSSL?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆