[英]ImportError: No module named utils_datagen
I am trying to run Martin Gorner's GoogleCloudPlatform/tensorflow-without-a-phd 00_RNN_predictions_playground.ipynb
and get an ImportError
for both import utils_datagen
and import utils_display
. 我正在尝试运行Martin Gorner的
GoogleCloudPlatform/tensorflow-without-a-phd 00_RNN_predictions_playground.ipynb
并为import utils_datagen
和import utils_display
获取ImportError
。
I get the same error running tensorflow/tensorflow
Python 2 and Jupiter/tensorflow-notebook
running Python 3. I am running macOS Sierra 10.13.3 and Docker Client: Version: 18.03.1-ce 我在运行
tensorflow/tensorflow
Python 2和运行Python 3的Jupiter/tensorflow-notebook
遇到相同的错误。我在运行macOS Sierra 10.13.3和Docker Client:版本:18.03.1-ce
How do I access utils_datagen
or work around it? 如何访问
utils_datagen
或解决该问题? Thanks 谢谢
Lew 露
import numpy as np
import utils_datagen
import utils_display
from matplotlib import pyplot as plt
import tensorflow as tf
print("Tensorflow version: " + tf.__version__)
print("Hello World and Lew 30 May")
And get: 得到:
ImportError Traceback (most recent call last)
<ipython-input-2-0f00155f1447> in <module>()
1 import numpy as np
----> 2 import utils_datagen
3 import utils_display
4 from matplotlib import pyplot as plt
5 import tensorflow as tf
ImportError: No module named utils_datagen
Solved by comment from @Y. 通过@Y的评论解决。 Luo.
罗 In trying to simplify my file string, I only partially cloned the Gorner GitHub file into my host file and missed the utils_datagen file.
在尝试简化文件字符串时,我仅将Gorner GitHub文件部分克隆到了主机文件中,而没有使用utils_datagen文件。 Now python can find it.
现在,python可以找到它了。
Close this thread. 关闭此线程。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.