python安装中出现 cannot install ''xxx" .It is a distutils installed project and thus we cannot uninstall

tf出现一个库无法卸载,最终解决,其实主要的原因是无法通过pip uninstall卸载,总结经验如下:

1、直接删除在site-package下的相关包

如果找到相关的包,可以参考: https://blog.csdn.net/qq_31747765/article/details/80303366

2、忽略已经安装的强制安装

pip install xxx--ignore-installed xxx

猜你喜欢

转载自blog.csdn.net/everlasting_188/article/details/100099228