无法建立轮子/“错误:包含环境变量为空" [英] Failure to build wheel / "Error: INCLUDE Environment Variable is empty"
问题描述
我正在使用Python 2.7.11并试图pip安装模块,但是其中一些失败了.我收到的消息是无法为'X'构造滚轮"和错误:INCLUDE环境变量为空".
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".
我尝试安装Scrapy,LXML和Twisted,但均失败.我尝试安装的其他一些随机模块也很好.
I tried to install Scrapy, LXML and Twisted and those failed. Some other random modules I tried installed fine.
我已经安装了pyOpenSSL,并向环境中添加了python27和python27/scripts.
I have installed pyOpenSSL, added python27 and python27/scripts to environment.
谢谢
推荐答案
我尝试了两种提供的解决方案,都没有用.
I tried both the solutions offered, none worked.
我安装了适用于Python 2.7的Microsoft Visual C ++编译器,并下载了这里.然后运行:
I installed Microsoft Visual C++ Compiler for Python 2.7, download it here. Then run:
pip install scrapy
对我有用
这篇关于无法建立轮子/“错误:包含环境变量为空"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!