[Solved]: ModuleNotFoundError: No module named 'tensorlayer'

The reason is your machine doesn’t have tensorlayer

Installing TensorLayer

You can easily install Tensorlayer using pip in CMD:

pip install tensorlayer

If You want to install particular version then use following command:

pip install tensorlayer==1.11.2

Use sudo for admin access

sudo pip install tensorlayer==1.11.2

with conda do this:

sudo conda  install tensorlayer==1.11.2