Cannot uninstall ’ '. It is a distutils installed project and thus we cannot accurately

pip安装python接口库时,出现Cannot uninstall ’ '. It is a distutils installed project and thus we cannot accurately determin的问题,
在网上找了很多解决办法,大部分说是找到相应的—.egg-info删除该文件,可能我出现类似的问题挺多的,有时候对应的文件并没有找到,
就直接找了另一种方法解决
强制性升级,哪个库出现问题,就去给他升级
sudo pip install --ignore-installed +模块名
就这样解决了。

猜你喜欢

转载自blog.csdn.net/weixin_43165871/article/details/84035536