ubuntu下使用pip卸载包时出现Cannot uninstall scipy的bug

ubuntu系统下使用pip uninstall scipy命令卸载包时,遇到报错信息为:

ERROR: Cannot uninstall ‘scipy’. 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.
最终发现通过以下方式可以解决:
在/根目录下搜索“scipy",最终在/usr/lib/python3/dist-packages/路径下找到一个scipy文件夹以及一个scipy.egg-info文件(具体名称略有不同),将这两个文件全部删掉,然后再进行pip安装/卸载即可。

 

posted @ 2020-05-29 18:33  墨池有雨  阅读(545)  评论(0编辑  收藏  举报