失眠网,内容丰富有趣,生活中的好帮手!
失眠网 > ERROR: Cannot uninstall ‘PyYAML’. It is a distutils installed project and thus we cannot accurately

ERROR: Cannot uninstall ‘PyYAML’. It is a distutils installed project and thus we cannot accurately

时间:2022-01-15 14:26:45

相关推荐

ERROR: Cannot uninstall ‘PyYAML’. It is a distutils installed project and thus we cannot accurately

用requirements.txt文件安装依赖时,出现错误,已经安装了PyYAML==5.3.1,无法卸载。

ERROR: Cannot uninstall ‘PyYAML’. 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.

强制安装,仍然无法通过requirements.txt,在网上找到解决办法。

输入以下命令,找出PyYAML的所有相关文件,删除掉

find / -name *PyYAML*

删掉Anaconda里面的。然后正常安装PyYAML即可。

如果觉得《ERROR: Cannot uninstall ‘PyYAML’. It is a distutils installed project and thus we cannot accurately》对你有帮助,请点赞、收藏,并留下你的观点哦!

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。