2016-08-23 回答
编辑环境: [root@openstack-01 rhel7.x]# cat /etc/redhat-release centos linux release 7.2.1511 (core) openstack版本:mitaka python-zope-interface python-jinja2 python-cheetah python-cheetah python-webtest python-werkzeug 其中安装python-jinja2的时候出现不兼容的问题: [root@openstack-01 rhel7.x]# yum install python-jinja2-2.7.2 loaded plugins: fastestmirror, langpacks loading mirror speeds from cached hostfile * c7-media: resolving dependencies --> running transaction check ---> package python-jinja2.noarch 0:2.7.2-1.el6 will be installed --> processing dependency: python(abi) = 2.6 for package: python-jinja2-2.7.2-1.el6.noarch --> finished dependency resolution error: package: python-jinja2-2.7.2-1.el6.noarch (rhel-repository) requires: python(abi) = 2.6 installed: python-2.7.5-34.el7.x86_64 (@anaconda) python(abi) = 2.7 python(abi) = 2.7 you could try using --skip-broken to work around the problem you could try running: rpm -va --nofiles --nodigest [root@openstack-01 yum]# yum install python-2.6.6 loaded plugins: fastestmirror, langpacks loading mirror speeds from cached hostfile * c7-media: package matching python-2.6.6-51.el6.x86_64 already installed. checking for update. nothing to do ,具体解决方案如下: 解决方案1: 我想这个问题主要是如何解决python-2.7.5-34.el7.x86_64和python-2.6.6-51.el6.x86_64的问题。 centos linux release 7.2.1511自带的是python-2.7.5-34.el7.x86_64。 下面的包都要2.6 python-zope-interface python-jinja2 python-cheetah python-cheetah python-webtest python-werkzeug 解决方案2: 官网上也有这个问题,可是没有人回答。 https://ask.openstack.org/zh/question/91784/zai-centos7zhong-an-zhuang-havanati-shi-pythonban-ben-bu-zhi-chi/