17

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?

Udi
  • 29,222
  • 9
  • 96
  • 129

3 Answers3

14

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.

Udi
  • 29,222
  • 9
  • 96
  • 129
  • 15
    Note: Need to install the regular version of OpenSSL, not the 'light' version that's first in the list! – Leftium Feb 15 '12 at 09:19
  • 1
    For those of you getting an error about SSL timing out, this solution worked for me. I had to install the Visual C++ 2008 Redistributables (which corrected that error, and then gave me the error from this question), and then install the actual OpenSSL binary. – vergenzt Apr 17 '13 at 23:27
3

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
Matti Virkkunen
  • 63,558
  • 9
  • 127
  • 159
0

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.

Tas
  • 141
  • 2
  • 8