如何找到安装python-jinja2等包
2个回答
2016-12-24 · 知道合伙人互联网行家
关注
展开全部
编辑环境:
[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/
[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/
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询
广告 您可能关注的内容 |