Mac 安裝 scrapy

問題參考:https://www.jianshu.com/p/97b0bb5c720acss

一、升級pip:pip install --upgrade pippython

二、安裝scrap,忽略zope.interface : sudo pip install Scrapy --upgrade --ignore-installed zope.interfaceide

Successfully installed Automat-0.7.0 PyDispatcher-2.0.5 PyHamcrest-1.9.0 Scrapy-1.5.1 Twisted-18.9.0 asn1crypto-0.24.0 attrs-18.2.0 cffi-1.11.5 constantly-15.1.0 cryptography-2.4.1 cssselect-1.0.3 enum34-1.1.6 functools32-3.2.3.post2 hyperlink-18.0.0 idna-2.7 incremental-17.5.0 ipaddress-1.0.22 lxml-4.2.5 parsel-1.5.1 pyOpenSSL-18.0.0 pyasn1-0.4.4 pyasn1-modules-0.2.2 pycparser-2.19 queuelib-1.5.0 service-identity-17.0.0 setuptools-40.6.2 six-1.11.0 w3lib-1.19.0 zope.interface-4.6.0post

 

問題1:  unable to execute gcc: No such file or directory error: command 'gcc' failedspa

解決方案:rest

sudo yum install python-devel

sudo yum install libevent-devel

參考連接: https://stackoverflow.com/questions/11094718/error-command-gcc-failed-with-exit-status-1-while-installing-eventletcode

相關文章
相關標籤/搜索