To Solve ImportError: No module named 'yaml' Error To solve this error all you need to do is just install pyyaml using this command. pip install pyyaml.