安装cloudinit时发生Python冲突

安装cloudinit时发生Python冲突,python,centos,yum,cloud-init,Python,Centos,Yum,Cloud Init,我有一个CentOS 6.0虚拟机。我正在尝试在其上安装cloud init(与AWS相关)。我跑 yum install cloud-init 然后,我看到cloud init依赖于许多python包 在我接受安装(带有“y”)后,我看到数百个错误,如下所示: file /usr/lib64/python2.6/xml/etree/ElementPath.pyc from install of python-libs-2.6.6-66.el6_8.x86_64 conflicts with

我有一个CentOS 6.0虚拟机。我正在尝试在其上安装cloud init(与AWS相关)。我跑

yum install cloud-init
然后,我看到cloud init依赖于许多python包

在我接受安装(带有“y”)后,我看到数百个错误,如下所示:

file /usr/lib64/python2.6/xml/etree/ElementPath.pyc from install of python-libs-2.6.6-66.el6_8.x86_64 conflicts with file from package python-2.6.5-3.el6_0.2.x86_64
file /usr/lib64/python2.6/xml/etree/ElementPath.pyo from install of python-libs-2.6.6-66.el6_8.x86_64 conflicts with file from package python-2.6.5-3.el6_0.2.x86_64
file /usr/lib64/python2.6/xml/etree/ElementTree.pyc from install of python-libs-2.6.6-66.el6_8.x86_64 conflicts with file from package python-2.6.5-3.el6_0.2.x86_64
file /usr/lib64/python2.6/xml/etree/ElementTree.pyo from install of python-libs-2.6.6-66.el6_8.x86_64 conflicts with file from package python-2.6.5-3.el6_0.2.x86_64

usr/bin/python-V返回Python2.6.5,因此虚拟机似乎正在使用这个版本,而依赖项使用的是2.6.6。然而,我不明白为什么cloud init不能在系统使用2.6.5时只使用2.6.6。为什么cloud init安装失败并出现“与文件冲突”错误?

您应该首先对系统进行全面更新。您是指操作系统吗?不幸的是,使用CentOS 6.0恰好是一个限制:(不,我说的是
yum升级
。在过时的系统上安装软件时,这是一个典型的依赖性问题。例如:过时的软件包需要libxyz版本1.0.1,而新的to install软件包需要版本1.0.2。两者都不能满足。更新旧软件包时,依赖性将更改为1.0。2,一切都很好。不使用系统包和yum。对于Python开发,可以解决这个问题。