例如想要升级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.

问题解析:

旧版本依赖多,不能清晰的删除,此时应该忽略旧版本升级,即如下

加上  --ignore-installed  

解决办法:sudo pip install nibabel --ignore-installed nibabel

相关文章:

  • 2021-12-31
  • 2022-01-14
  • 2021-12-06
  • 2022-12-23
  • 2022-12-23
  • 2021-11-24
  • 2022-12-23
  • 2021-12-06
猜你喜欢
  • 2021-07-14
  • 2021-08-26
  • 2021-11-09
  • 2021-12-30
  • 2021-12-03
  • 2021-06-24
  • 2022-12-23
相关资源
相似解决方案