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.
错误:无法卸载“ PyYAML”。 这是一个distutils安装的项目,因此我们无法准确确定属于该文件的文件,而这只会导致部分卸载。
我在ubuntu中安装kolla-ansible时报了上面这个错误 sudo pip install kolla-ansible

然后将安装命令改为sudo pip install kolla-ansible --ignore-installed PyYAML就行了.
加的--ignore-installed PyYAML应该是通过 pip 安装 kolla-ansible时,忽略某些依赖,此处为PyYAML。

本文介绍了解决在Ubuntu中使用pip安装kolla-ansible时遇到的PyYAML卸载错误的方法。通过添加--ignore-installedPyYAML参数,成功避免了因distutils安装项目导致的卸载不完全问题。
5万+

被折叠的 条评论
为什么被折叠?



