在Windows 7 64位如何安装PyOpenSSL?Windows、PyOpenSSL

2023-09-08 00:45:01 作者:陈赤赤玩lol很棒@

要获得 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位版本?或者是,unneccesary?

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.