scrapy installation error

本秂侑毒 提交于 2019-12-12 05:25:10

问题


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!


回答1:


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.



来源:https://stackoverflow.com/questions/10922967/scrapy-installation-error

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!