1. 程式人生 > >pip不能安裝、升級、解除安裝軟體問題

pip不能安裝、升級、解除安裝軟體問題

例如想要升級nibabel時

使用命令:sudo pip install --upgrade nibabel

報錯:

Cannot uninstall ‘nibabel’. 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.

問題解析:

舊版本依賴多,不能清晰的刪除,此時應該忽略舊版本升級,即如下

解決辦法:sudo pip install nibabel --ignore-installed nibabel