训练对象检测分类器 --> 导入错误时:没有名为张量流的模块



使用以下命令后

python generate_tfrecord.py --csv_input=images/train_labels.csv --image_dir=images/train --output_path=train.record

我收到以下错误

Traceback (most recent call last):
File "generate_tfrecord.py", line 16, in
import tensorflow as tf
ImportError: No module named tensorflow

如何克服这个错误?

如果在列表中找不到tensorflow,请尝试pip freeze,然后使用以下命令进行安装。

pip install --upgrade tensorflow

最新更新