ImportError:无法导入名称“捕获依赖项”

时间:2018-09-21 09:49:08

标签: tensorflow anaconda jupyter-notebook tflearn

即使我使用以下方法安装了tflearn,也是如此:
pip install tflearn在Anaconda

我刚在笔记本中运行的命令是:
import tflearn

我在jupyter笔记本电脑中遇到此错误
ImportError: cannot import name 'capture_dependencies'

解决方法?
整个错误代码都在后面。

ImportError        Traceback (most recent call last)
<ipython-input-17-9d7ed441cee1> in <module>()
----> 1 import tflearn

~\Anaconda3\lib\site-packages\tflearn\__init__.py in <module>()
  2 
  3 # Config
----> 4 from . import config
  5 from .config import is_training, get_training_mode, init_graph
  6 

~\Anaconda3\lib\site-packages\tflearn\config.py in <module>()
  3 import tensorflow as tf
  4 
----> 5 from .variables import variable
  6 
  7 # -------------------

~\Anaconda3\lib\site-packages\tflearn\variables.py in <module>()
  5 import tflearn
  6 
----> 7 from tensorflow.contrib.framework.python.ops import add_arg_scope       as contrib_add_arg_scope
  8 from tensorflow.python.framework import ops
  9 from tensorflow.python.ops import variable_scope

~\Anaconda3\lib\site-packages\tensorflow\contrib\__init__.py in <module>()
 25 from tensorflow.contrib import batching
 26 from tensorflow.contrib import bayesflow
---> 27 from tensorflow.contrib import checkpoint
 28 if os.name != "nt":
 29   from tensorflow.contrib import cloud

~\Anaconda3\lib\site-packages\tensorflow\contrib\checkpoint\__init__.py          in <module>()
 47 from tensorflow.python.training.checkpointable.data_structures import NoDependency
 48 from tensorflow.python.training.checkpointable.tracking import Checkpointable
---> 49 from tensorflow.python.training.checkpointable.util import capture_dependencies
 50 from tensorflow.python.training.checkpointable.util import list_objects
 51 from tensorflow.python.training.checkpointable.util import   object_metadata

ImportError: cannot import name 'capture_dependencies'

0 个答案:

没有答案