[英]Error command 'gcc' failed with exit status 1
I installed Scrapy on windows 7 64bit. 我在Windows 7 64bit上安装了Scrapy。 When I enter scrapy startproject tutorial
in CMD, I get an error: 当我在CMD中输入scrapy startproject tutorial
时,出现错误:
ImportError: No module named `cryptography.hazmat.bindings.openssl.binding`
To solve this, I want to install pycrypto. 为了解决这个问题,我想安装pycrypto。 When I run pip install pycrypto
, the next error was: _Unable to find
vcvarsall.bat _
, because I have installed Visual Studio 2010, to solve this, I installed mingw32 and set environment variable and disabled my antivirus and removed -mno-cygwin
from cygwinccompiler.py
: 当我运行pip install pycrypto
,下一个错误是: _Unable to find
vcvarsall.bat _
,因为我已经安装了Visual Studio 2010,为解决此问题,我安装了mingw32并设置了环境变量并禁用了防病毒功能,并从中删除了-mno-cygwin
cygwinccompiler.py
:
if self.gcc_version < '4' or is_cygwingcc():
no_cygwin = ''
else:
no_cygwin = ' -mno-cygwin'
Became: 变成了:
if self.gcc_version < '4' or is_cygwingcc():
no_cygwin = ''
else:
no_cygwin = ''
And now I get the error: 现在我得到了错误:
error command 'gcc' failed with exit status 1
(Installed python 2.7 64) (安装了python 2.7 64)
Please guide me. 请指导我。
The easy thing is just to install the binary builds from http://www.voidspace.org.uk/python/modules.shtml#pycrypto 简单的事情就是从http://www.voidspace.org.uk/python/modules.shtml#pycrypto安装二进制版本
Then you can attempt building the PyCrypto C extensions again at leisure: 然后,您可以尝试再次随意构建PyCrypto C扩展:
vcvarsall.bat
. Visual Studio附带了一个vcvarsall.bat
的CMD快捷方式。 Use that shortcut to start cmd.exe
and run pip install
from there. 使用该快捷方式启动cmd.exe
并从此处运行pip install
。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.