我尝试通过pip安装tflearn,如下所示
pip install tflearn
现在,当我打开python时,会发生以下情况:
>>> import tflearnTraceback (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
有什么想法吗?我在用蟒蛇的装置。

最佳答案

variance_scaling_initializer()函数是added on April 19th,这意味着它不包含在0.8.0rc0版本中,您需要升级到TensorFlow的新版本如果升级到本周发布的0.9.0rc0版本,tflearn应该可以工作。

关于python - TFLearn pip安装错误,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/37686139/

10-12 18:29