Pip 安装Scrapy时依赖于six的库失败的解决方法

方法1:使用pip安装:sudo pip install Scrapy

方法2(推荐):使用国内豆瓣源进行安装:
sudo pip install -i https://pypi.douban.com/simple/ scrapy

Error:

Found existing installation: six 1.4.1
DEPRECATION: Uninstalling a distutils installed project (six) has been deprecated and will be removed in a future version. This is due to the fact that uninstalling a distutils project will only partially uninstall the project.
Uninstalling six-1.4.1:
......

www.png

Reason:

OS系统预安装的这个six库出于安全原因被设置为sudo也不可以执行操作,所以需要依赖于高版本的库就需要更新six,但是没有six的权限,所以就会报错。
来自大神的见解

Solution:

sudo pip install -i https://pypi.douban.com/simple/ scrapy --upgrade --ignore-installed six

Over !!

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。