I am trying to install scrapy on Windows XP (32bit) virtualenv:

pip install scrapy

The installer spits out this ambiguous error message:

error: Only found improper OpenSSL directories: ['E:\\cygwin', 'E:\\Program Files\\Git']

How should I configure openssl / pyOpenSSL to make pip work?

有帮助吗?

解决方案

Apparently pyopenssl installation expects the binaries and libs to be laid out exactly as installed by OpenSSL windows binaries. Installing it from there (and not using cygwin's openssl for example), and adding the bin directory to the path solved this issue.

其他提示

Installing the newest package from that site with the default settings didn't work me. It seems to look for openssl.exe in your PATH and then look for the libraries in its parent directory. A quick fix is to find wherever openssl.exe got installed and add the directory to your path. For me it was:

set path=%path%;C:\OpenSSL-Win32\bin

I had the following problem trying to install pyOpenSSL using pip: Setup script exited with error: Unable to find vcvarsall.bat

After updating the setuptools (pip install -U setuptools), the pip install worked. I did not have to install any binaries manually.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top