我正在尝试使用scrapy,但它需要扭曲。我已经尝试了其他帖子中建议的许多解决方案,但没有任何效果。我在 Mac Maverick 上有 python 2.7 和 gcc4.2.1。
> /Library/Frameworks/Python.framework/Versions/2.7/include/python2.7/Python.h:33:10:
> fatal error: 'stdio.h' file not found
>
> #include <stdio.h>
>
> ^
>
> 1 error generated.
>
> error: command '/usr/bin/clang' failed with exit status 1
2013 年 10 月 25 日编辑 -----------------------------
是的,我安装了 Mac 开发者工具,但现在我收到了这条消息:
> Requirement already satisfied (use --upgrade to upgrade): setuptools in
> /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/setuptools-0.6c11-py2.7.egg
> (from zope.interface>=3.6.0->twisted)
> Installing collected packages: twisted, zope.interface
> Running setup.py install for twisted
>
> /usr/bin/clang -fno-strict-aliasing -fno-common -dynamic -arch i386 -arch x86_64 -g -O2 -DNDEBUG -g -O3
> -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c conftest.c -o conftest.o
我现在应该输入什么?