Transferred from: http://www.fwqtg.net/%E5%85%B3%E4%BA%8Epyyaml%E6%8A%A5%E9%94%99%E9%97%AE%E9%A2%98%E8%A7%A3%E5%86%B3.html
Everyone in the installation of Ansible or OpenStack may encounter the following similar error, beginning I also baffled its solution, finally found very simple, shared to everyone, to avoid similar problems.
Ansible Error:
Error:package:ansible-1.9.1-1.el6.noarch (Epel)
Requires:pyyaml
You could try Using–skip-broken to work around the problem
You could try Running:rpm-va–nofiles–nodigest
OpenStack Error:
Yum Install Openstack-keystone python-keystoneclient-y
Error:
Error:package:python-oslo-messaging-1.3.0.2-4.el6.noarch (Openstack-icehouse)
Requires:pyyaml
Check a lot of user data, the problem occurs a lot but there is no solution.
Cause of the problem:
Yum source problem, I locally set up the local Yum source and Epel source for the disc, but pyyaml.x86_64 0:3.10-3.1.el6 this package is not in these two Yum sources, set 163 or other open source image yum Source can be
CDs or ISO are generally divided into two parts, some infrequently used expansion packs are in CD2
Epel Source is a supplement and extension of CentOS or redhat source, which is not equivalent
About Pyyaml Error Problem solving