我有一个安装了 Python 2.6 的 rhel 6.6 机器。我已经配置了 epel repo。现在当我执行
"yum install -y cloud-utils cloud-init parted git", it gives me the following error.
--> Finished Dependency Resolution
Error: Package: python-boto-2.38.0-1.el6.noarch (epel)
Requires: python-requests
Error: Package: cloud-init-0.7.4-2.el6.noarch (epel)
Requires: python-argparse
Error: Package: cloud-init-0.7.4-2.el6.noarch (epel)
Requires: PyYAML
Error: Package: python-boto-2.38.0-1.el6.noarch (epel)
Requires: python-six
Error: Package: cloud-init-0.7.4-2.el6.noarch (epel)
Requires: python-requests
即使我已经使用 pip 安装了依赖包,但仍然出现相同的错误。
供参考,
[root@rhel6-64bit yum.repos.d]# pip install requests argparse PyYAML six
Requirement already satisfied (use --upgrade to upgrade): requests in
/usr/lib/python2.6/site-packages Requirement already satisfied (use
--upgrade to upgrade): argparse in /usr/lib/python2.6/site-packages Requirement already satisfied (use --upgrade to upgrade): PyYAML in
/usr/lib64/python2.6/site-packages Requirement already satisfied (use
--upgrade to upgrade): six in /usr/lib/python2.6/site-packages
那么,cloud-init 包是否需要 python 2.7 或更高版本。有人能提出一些建议吗?任何帮助都将不胜感激