To Fix ImportError: No module named ‘yaml’ Error just Install pyyaml. Just install pyyaml to solve your error. You can use the below command for that. pip install pyyaml