Solution for : No Module Named pyYAML

The easy solution for this error is to install the missing module pyYAML :

pip install pyYAML

If pip install is not working try using conda:

conda install pyYAML

Why don't I have a module named pyYAML? There are known reasons for the cause of this error. The most observed reason is due to the unavailability of pyYAML in your working directory. But that's not all, if your python file is called pyYAML.py, it may also generate this error: No module named pyYAML

Other installation errors :

ImportError: No module named pyYAML