Ubuntu下安装第三方依赖包时出现无法安装的情况

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/m0_37592397/article/details/82534698

问题描述:

第三方依赖包已经安装完成后,由于版本的问题,出现不兼容的情况,此时也无法进行更新,可以先输入以下命令,查看已经安装的版本pip list

尝试升级:

例如想要升级numpy

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

报错:

Cannot uninstall ‘numpy’. 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 numpy --ignore-installed numpy

猜你喜欢

转载自blog.csdn.net/m0_37592397/article/details/82534698