pip安装软件报错:Cannot uninstall 'requests'. It is a distutils installed.........

安装icrawler时候运行如下命令

sudo pip install icrawler 

报错:

Cannot uninstall 'requests'. It is a distutils installed project and thus we cannot accurately determine which files belong to it which would lead to only a partial uninstall

这是就旧版本的requests 依赖比较多,pip不能准确找到依赖关系。

解决方式:忽略旧版本的依赖信息

运行如下命令:

sudo pip install icrawler --ignore-installed requests

发布了230 篇原创文章 · 获赞 248 · 访问量 26万+

猜你喜欢

转载自blog.csdn.net/youngyangyang04/article/details/105020271