欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

Mac 安装 scrapy

程序员文章站 2022-05-07 13:06:27
...

问题参考:https://www.jianshu.com/p/97b0bb5c720a

1、升级pip:pip install --upgrade pip

2、安装scrap,忽略zope.interface : sudo pip install Scrapy --upgrade --ignore-installed zope.interface

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.0

 

问题1:  unable to execute gcc: No such file or directory error: command 'gcc' failed

解决方案:

sudo yum install python-devel

sudo yum install libevent-devel

参考链接: https://*.com/questions/11094718/error-command-gcc-failed-with-exit-status-1-while-installing-eventlet

转载于:https://my.oschina.net/u/180293/blog/2876634