Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Failure to build wheel / "Error: INCLUDE Environment Variable is empty"

I am using Python 2.7.11 and am trying to pip install modules however a few of them are failing. The message I get is "Failure to build wheel for 'X'" and "Error: INCLUDE Environment Variable is empty".

I tried to install Scrapy, LXML and Twisted and those failed. Some other random modules I tried installed fine.

I have installed pyOpenSSL, added python27 and python27/scripts to environment.

Thanks,

like image 563
riyadude Avatar asked Sep 26 '16 20:09

riyadude


1 Answers

I tried both the solutions offered, none worked.

I installed Microsoft Visual C++ Compiler for Python 2.7, download it here. Then run:

pip install scrapy

That worked for me

like image 106
ranni rabadi Avatar answered Nov 04 '22 15:11

ranni rabadi