ImportError: No module named 'tflearn'

Sharthak Ghosh picture Sharthak Ghosh · Nov 30, 2016 · Viewed 29.8k times · Source

I have installed tensorflow following the guide at the website. Tensorflow code runs perfectly, I have also installed tflearn. Problem is whenever I am trying to import tflearn it says "ImportError: No module named 'tflearn'" but tflearn is there in the site-packages directory

I have an Anaconda installation and a Conda environment for running tensorflow code

Answer

caramelslice picture caramelslice · Jan 3, 2018

Seems to be an Anaconda issue.

pip install tflearn 

was throwing parse errors. This worked for me: open Anaconda prompt

conda install pip
pip install tflearn