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

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章