scrapy安装错误 [英] scrapy installation error

查看:187
本文介绍了scrapy安装错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在运行easy_install scrapy时遇到了问题,并且出现以下错误:

  ** cc1.exe:error:unrecognized命令行选项'-mno -cygwin'
错误:安装脚本退出时显示错误:命令'gcc'失败,退出状态为1 **

我在Windows 32位上运行python 2.7。我安装了mingw,libxslt,liblxml2。那里发生了什么?感谢!

解决方案

解决方法是从C:\Python27\Lib\中删除-mno-cygwin的所有实例distutils\cygwinccompiler.py,重新运行easy_install。



我有这个问题,我在这里找到了答案:



http://www.techques.com/question/1-6034390/Compiling-with-cython-and-mingw-produces-gcc:-error:-unrecognized-command-line-option- '-mno-cygwin'



我安装了GCC版本4.6.2,它不支持-mno-cygwin选项。

i'm having trouble running easy_install scrapy and got the following error:

**cc1.exe: error: unrecognized command line option '-mno -cygwin'
error: setup script exited with error: command 'gcc' failed with exit status 1**

i'm running python 2.7 on windows 32 bit. i installed mingw, libxslt, liblxml2. what's going on there? Thanks!

解决方案

The solution is to remove all instances of -mno-cygwin from C:\Python27\Lib\distutils\cygwinccompiler.py, re-run easy_install.

I had this same problem and I found the answer here:

http://www.techques.com/question/1-6034390/Compiling-with-cython-and-mingw-produces-gcc:-error:-unrecognized-command-line-option-'-mno-cygwin'

I had GCC version 4.6.2 installed which did not support the -mno-cygwin option.

这篇关于scrapy安装错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆