Pages

Sunday, July 29, 2012

Installing Twisted Python / Scrapy using Mingw


I kept getting errors about -mno-cygwin, not being defined or deprecate or something using either pip install scrapy or easy_install scrapy. It wasn't particularly easy to find the solution but a stackover post suggested this:
After more some googling, I found guidance that recommended removing -mno-cygwin fromC:\Python27\Lib\distutils\cygwinccompiler.py because of a distutils bug.
Removing -mno-cygwin from C:\Python27\Lib\distutils\cygwinccompiler.py

Which finally worked for me.

Or even better use the excellent prebuilt libraries from here: http://www.lfd.uci.edu/~gohlke/pythonlibs/

No comments:

Post a Comment

All comments are moderated unless the post is very recent.
It may take a little time for your comment to be pushed to the blog.
Anything spammy is deleted.