linux 下安装kolla报错 提示Cannot uninstall requests
发布日期:2021-05-07 15:04:28 浏览次数:8 分类:原创文章

本文共 576 字,大约阅读时间需要 1 分钟。

  linux 下安装kolla报错:pip install包提示Cannot uninstall 'requests'.

在练习安装kolla-ansible的过程中,一次不知道什么原因,安装命令为:

pip install .

报错:

ERROR: Cannot uninstall 'requests'. 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.

总的意思就是不能卸载模块requests,因为这是项目所依赖的模块,不确定具体的依赖是哪,所以不能完成卸载操作。也就是依赖无法定位。

  该卸载操作无法完成的后果是后续的包无法安装,Linux下 输入命令 echo $? 返回值是1.

解决方法如下:

跳过卸载requests模块的操作,输入命令:

pip install . --ignore-installed requests

完美解决~

总结:遇到类似的模块依赖问题的时候,如果一直安装不上或者卸载不了,报错为依赖无法定位的问题时,安装命令后添加

--ignore-installed  报错的包名

 

上一篇:openstack-nova-compute.service 计算节点服务无法启动
下一篇:centos7 安装docker-compose的两种方式(直接下载和通过Python管理器)

发表评论

最新留言

很好
[***.229.124.182]2025年03月24日 11时01分17秒