報錯提示
在使用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