[英]Error command 'gcc' failed with exit status 1
我在Windows 7 64bit上安装了Scrapy。 当我在CMD中输入scrapy startproject tutorial
时,出现错误:
ImportError: No module named `cryptography.hazmat.bindings.openssl.binding`
为了解决这个问题,我想安装pycrypto。 当我运行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'
变成了:
if self.gcc_version < '4' or is_cygwingcc():
no_cygwin = ''
else:
no_cygwin = ''
现在我得到了错误:
error command 'gcc' failed with exit status 1
(安装了python 2.7 64)
请指导我。
简单的事情就是从http://www.voidspace.org.uk/python/modules.shtml#pycrypto安装二进制版本
然后,您可以尝试再次随意构建PyCrypto C扩展:
vcvarsall.bat
的CMD快捷方式。 使用该快捷方式启动cmd.exe
并从此处运行pip install
。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.