JavaEar 专注于收集分享传播有价值的技术资料

ImportError: No module named 'tflearn'

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


  1. Thanks a lot, it worked. I first uninstalled tflearn, then activated the tensorflow environment and simply did a pip install tflearn. Then installed h5py and scipy after that. It works perfectly now. Thanks to Zhongyu Kuang for pointing out the difference between the environments.