2013-10-24 65 views
0

我試圖使用scrapy,但它需要扭曲。 我已經嘗試了其他帖子中提出的許多解決方案,但沒有任何工作。我在Mac Maverick上安裝了python 2.7和gcc4.2.1。在Mac Mavericks上沒有命名爲扭曲的模塊

> /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 

編輯十月,25日,2013 -----------------------------

對,我裝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 

現在應該輸入什麼內容?

回答

1

看起來您需要安裝Apple Developer Site中的Apple命令行工具,它將爲您提供scrapy所需的clang和其他開發頭文件。

+0

對,我下載了它,但我仍然無法安裝它 –

+0

@FilipeFerminiano:將命令行的整個輸出及其所有輸出都發送到主題,以便我們可以看到你在做什麼! – VooDooNOFX