pip安装报错解决方案

报错提示

在使用pip安装命令时,若出现如下报错信息:

ERROR: 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.

出现原因可能是部分的包由于版本不一致情况需要重装,但是无法完全获取到涉及的文件。因此无法卸载重装,若确认相关包信息是完备的,我们可以跳过这个包的处理。

解决办法

使用--ignore-installed来忽略对应包信息的处理
pip install cos-python-sdk-v5 --ignore-installed requests

posted @ 2020-11-20 15:17  ZimskyZeng  阅读(1323)  评论(0编辑  收藏  举报