Thursday, December 18, 2014

Installing scrapy with PIP




Recently I've came across some problems while installing scrapy with PIP. The problem is with installing cryptography.



 Common solution is posted on StackOverflow, you should add libs before pip compile:

 C:\> set LIB=C:\OpenSSL-Win32\lib;%LIB%
 C:\> set INCLUDE=C:\OpenSSL-Win32\include;%INCLUDE%
 C:\> pip install cryptography


But it didn't work for me, I still got error during compilation:

 LINK : fatal error LNK1181: cannot open input file 'libeay32mt.lib'


The solution was quite ease, as it appears that C:\OpenSSL-Win32 (that I had) has subfolders in lib directory:


The solution is to simply add one more path to lib, that solves the issue:

 C:\> set LIB=C:\OpenSSL-Win32\lib;C:\OpenSSL-Win32\lib\VC;%LIB%   

No comments:

Post a Comment