今天在使用python的时候,想尝试一下爬虫于是就想安装Scrapy库,但是在终端下使用pip3 insatall Scrapy 一只出现如下问题
Requirement already satisfied: zope.interface>=4.0.2 in
./Library/Python/3.6/lib/python/site-packages (from Twisted>=13.1.0- >Scrapy)
Requirement already satisfied: constantly>=15.1 in
/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages (from Twisted>=13.1.0->Scrapy)
最后各种尝试也没有解决,后面发现安装一个纯净环境即可,如下
第一步
pip install virtualenv
然后
virtualenv foo
最后
foo/bin/pip install scrapy
ok解决
网友评论