mac pip install scrapy报错解决

mac pip install scrapy报错解决_第1张图片

如上图  输入 pip install scrapy报错

    /usr/bin/clang -fno-strict-aliasing -Wsign-compare -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -arch i386 -arch x86_64 -g -I/Library/Frameworks/Python.framework/Versions/3.6/include/python3.6m -c src/twisted/test/raiser.c -o build/temp.macosx-10.6-intel-3.6/src/twisted/test/raiser.o

    xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun

    error: command '/usr/bin/clang' failed with exit status 1

    

    ----------------------------------------

Command "/Library/Frameworks/Python.framework/Versions/3.6/bin/python3.6 -u -c "import setuptools, tokenize;__file__='/private/var/folders/hm/w2j2ddcx39z_h1f57r11xmhh0000gn/T/pip-install-5akt7nhv/Twisted/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /private/var/folders/hm/w2j2ddcx39z_h1f57r11xmhh0000gn/T/pip-record-8hz4m3uj/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /private/var/folders/hm/w2j2ddcx39z_h1f57r11xmhh0000gn/T/pip-install-5akt7nhv/Twisted/

 

输入  xcode-select --install  会弹出界面 选择安装即可,大约五分钟安装完毕

再输入 pip install srapy

(保证在此之前 pip更新到最新版本   :

成功:(输入  scrapy -h 验证一下)

mac pip install scrapy报错解决_第2张图片

 

你可能感兴趣的:(web数据管理)