【发布时间】:2019-01-19 03:08:29
【问题描述】:
我尝试运行 train.py 文件来训练我的对象检测器,但我收到了 ModuleNotFoundError: No module named 'tensorflow' 错误。我在我的 conda 环境中运行它,我可以在那个环境中导入和使用 tensorflow。有谁知道为什么会这样?谢谢
(fastai-audio) C:\Users\Andrew\Documents\TensorFlow\workspace\classification>train.py --logtostderr --train_dir=training/ --pipeline_config_path=training/pipeline.config
Traceback (most recent call last):
File "C:\Users\Andrew\Documents\TensorFlow\workspace\classification\train.py", line 47, in <module>
import tensorflow as tf
ModuleNotFoundError: No module named 'tensorflow
【问题讨论】:
-
你在 train.py 代码中使用了 python shebang 吗?
标签: tensorflow conda object-detection