pip安装:Cannot uninstall ''. It is a distutils installed project and thus we cannot accurately....解决办法

版权声明:本文为博主原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。
本文链接: https://blog.csdn.net/qq_40605167/article/details/102764651

在配置tensorflow的过程中,通过pip直接安装gpu版本时遇到了这个错误,
在这里插入图片描述
查了好长时间找不到解决办法,最终摸索出解决办法如下:
我遇到的错误:

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

解决办法:
找到wrapt.egg-info,一般就在usr/lib/python2.7或者其他安装pythonxxx dist-packages等路径里,如果是在anaconda里面的话。路径如下:
在这里插入图片描述
也可以直接在/目录下全局搜索。然后删掉即可。
其他的package遇到这种情况方法也通用,搜索.egg-info,找到后删除。

猜你喜欢

转载自blog.csdn.net/qq_40605167/article/details/102764651
今日推荐