Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in DevOps and Agile by (11.4k points)

I'm trying to install an Ansible role but I end up with this error:

ImportError: No module named yaml


What is the issue?

1 Answer

0 votes
by (32.3k points)

Here the system is unable to find the yaml package which is provided by PyYaml pip package. 

If you have a requirement.yaml file, Then try installing yaml adding the following command:

sudo pip install pyyaml 

You can also try to install the YAML 1.2 compatible package with pip install ruamel.yaml or if you are running a modern version of Debian/Ubuntu (or derivative) with:

sudo apt-get install python-ruamel.yaml

Browse Categories

...