2015-05-01 6 views
1

Не удается установить Scrapy на osx 10.10.3. Я запустил pip install Scrapy и получил сообщение об ошибке ниже, указывающее, что скрученный не может быть установлен. Я запустил xcode-select -install, чтобы убедиться, что инструменты xcode установлены. Я также попытался запустить sudo pip install Scrapy. Какие-либо предложения?проблемы с установкой scrapy на osx 10.10.3 с использованием pip

здесь сообщение об ошибке я получаю:

copying twisted/python/sendmsg.c -> build/lib.macosx-10.5-x86_64-2.7/twisted/python 
    copying twisted/runner/portmap.c -> build/lib.macosx-10.5-x86_64-2.7/twisted/runner 
    copying twisted/test/raiser.c -> build/lib.macosx-10.5-x86_64-2.7/twisted/test 
    running build_ext 
    gcc -fno-strict-aliasing -I/Applications/anaconda/include -arch x86_64 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/Applications/anaconda/include/python2.7 -c conftest.c -o conftest.o 


    Agreeing to the Xcode/iOS license requires admin privileges, please re-run as root via sudo. 


    building 'twisted.test.raiser' extension 
    creating build/temp.macosx-10.5-x86_64-2.7 
    creating build/temp.macosx-10.5-x86_64-2.7/twisted 
    creating build/temp.macosx-10.5-x86_64-2.7/twisted/test 
    gcc -fno-strict-aliasing -I/Applications/anaconda/include -arch x86_64 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/Applications/anaconda/include/python2.7 -c twisted/test/raiser.c -o build/temp.macosx-10.5-x86_64-2.7/twisted/test/raiser.o 


    Agreeing to the Xcode/iOS license requires admin privileges, please re-run as root via sudo. 


    error: command 'gcc' failed with exit status 69 

    ---------------------------------------- 
    Command "/Applications/anaconda/bin/python -c "import setuptools, tokenize;__file__='/private/var/folders/_1/4jqhq6xs6psby9hcm82k0w_h0000gn/T/pip-build-iVRJiH/Twisted/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /var/folders/_1/4jqhq6xs6psby9hcm82k0w_h0000gn/T/pip-SWIIhy-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /private/var/folders/_1/4jqhq6xs6psby9hcm82k0w_h0000gn/T/pip-build-iVRJiH/Twisted 

ответ

0

Намек прямо в сообщение об ошибке:

соглашаясь с лицензией Xcode/IOS требует привилегий администратора, пожалуйста повторно запускается как root через sudo.

Однако, я бы порекомендовал против запуска фактической установки как корень. Просто принимайте лицензию XCode один раз, делая

sudo xcodebuild -license 

, а затем повторное включение установки должно сделать трюк.

Смежные вопросы