Dilip Thiagarajan Dilip Thiagarajan -4 years ago 177
Python Question

TFLearn pip installation bug

I've tried installing tflearn through pip as follows

pip install tflearn


and now when I open python, the following happens:

>>> import tflearn
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "//anaconda/lib/python2.7/site-packages/tflearn/__init__.py", line 22, in <module>
from . import activations
File "//anaconda/lib/python2.7/site-packages/tflearn/activations.py", line 7, in <module>
from . import initializations
File "//anaconda/lib/python2.7/site-packages/tflearn/initializations.py", line 5, in <module>
from tensorflow.contrib.layers.python.layers.initializers import \
ImportError: cannot import name variance_scaling_initializer


Any ideas? I'm using an anaconda installation of python.

Answer Source

The variance_scaling_initializer() function was added on April 19th, which means that it wasn't included in version 0.8.0rc0, and you need to upgrade to a newer version of TensorFlow. If you upgrade to the 0.9.0rc0 version that was released this week, tflearn should work.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download