TFLearn 导入问题 - 没有模块core_rnn



我正在测试TFLearn库使用TensorFlow,但由于某些配置问题而无法导入它。不过,我按照TFLearn教程中的要求安装了它。感谢任何帮助。

>>> import tflearn as tf
>    import tflearn
  File "//anaconda/lib/python2.7/site-packages/tflearn/__init__.py", line 4, in <module>
    from . import config
ImportError: cannot import name config
这是

由于TFlearn和Tensorflow的不兼容造成的。它们可能是不同的版本。因此,要解决此问题,请卸载 tensorflow 和 tflearn 并使用以下代码重新安装它们 -

pip uninstall tflearn 
pip uninstall tensorflow
pip install -I tensorflow==0.12.1
pip install -I tflearn==0.2.1

最新更新