进入anaconda目录(为了防止删掉其他无辜文件),然后执行
find '.' -name "*xxx*.egg-info" -exec rm -rf {} \;
例如对于问题
ERROR: Cannot uninstall ‘certifi’. 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.
在shell中执行
find '.' -name "*certifi*.egg-info" -exec rm -rf {} \;
本文介绍了一种解决Anaconda环境下特定包卸载失败的方法。针对无法准确删除某些项目的文件而导致卸载不完全的问题,通过在Anaconda目录下执行特定的shell命令来清理残留的.egg-info文件,从而实现彻底卸载。
5万+





