【发布时间】:2021-09-27 00:11:46
【问题描述】:
在conda env 中使用jupyter notebook 会导致我在导入tensorflow_hub 时出现该错误:
ImportError: cannot import name 'dnn_logit_fn_builder' from partially initialized module
'tensorflow_estimator.python.estimator.canned.dnn' (most likely due to a circular import)
(C:\Users\Anaconda3\envs\my_env\lib\site-packages\tensorflow_estimator\python\estimator\canned\dnn.py)
我的环境是通过安装 pandas、tensorflow-hub、numpy、tensorflow 和 python=3.8.5 创建的。
更多详情:
tensorflow 2.3.0
tensorflow-base 2.3.0
tensorflow-estimator 2.3.0 conda-forge
tensorflow-hub 0.12.0 conda-forge
为什么会出现这个错误?
【问题讨论】:
标签: python tensorflow conda