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


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM