Pip 安装Scrapy时依赖于six的库失败的解决方法
2017-12-13 本文已影响13人
唯娓道来_
方法1:使用pip安装:sudo pip install Scrapy
方法2(推荐):使用国内豆瓣源进行安装:
sudo pip install -i https://pypi.douban.com/simple/ scrapy
Error:
www.pngFound 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:
......
Reason:
OS系统预安装的这个six库出于安全原因被设置为sudo也不可以执行操作,所以需要依赖于高版本的库就需要更新six,但是没有six的权限,所以就会报错。
来自大神的见解
Solution:
sudo pip install -i https://pypi.douban.com/simple/ scrapy --upgrade --ignore-installed six
Over !!