ModuleNotFoundError:没有名为“tensorflow_io”的模块

0 python tensorflow

我正在尝试在 Anaconda 环境中使用 TensorFlow 1 创建自己的对象检测模型。我想使用 TensorFlow 1.15,并且遵循了本教程 https://github.com/EdjeElectronics/TensorFlow-Lite-Object-Detection-on-Android-and-Raspberry-Pi

因为我是新手,所以当我到达设置 TensorFlow 的步骤时,我遵循了有关如何设置 TensorFlow 的教程,我使用了命令 pip install 。 使用研究目录中的 setup.py 安装 TensorFlow

安装后,我使用以下命令测试 TensorFlow 设置以验证其是否有效:

python 构建器\model_builder_tf1_test.py

但是,我面临以下错误:

**(tensorflow1) C:\tensorflow1\models\research\object_detection>python builders\model_builder_tf1_test.py
2021-11-15 15:00:30.638411: W tensorflow/stream_executor/platform/default/dso_loader.cc:64] Could not load dynamic library 'cudart64_110.dll'; dlerror: cudart64_110.dll not found
2021-11-15 15:00:30.638523: I tensorflow/stream_executor/cuda/cudart_stub.cc:29] Ignore above cudart dlerror if you do not have a GPU set up on your machine.
Traceback (most recent call last):
File "builders\model_builder_tf1_test.py", line 21, in
from object_detection.builders import model_builder
File "C:\tensorflow1\models\research\object_detection\builders\model_builder.py", line 37, in
from object_detection.meta_architectures import deepmac_meta_arch
File "C:\tensorflow1\models\research\object_detection\meta_architectures\deepmac_meta_arch.py", line 28, in
import tensorflow_io as tfio # pylint:disable=g-import-not-at-top
ModuleNotFoundError: No module named 'tensorflow_io'**
Run Code Online (Sandbox Code Playgroud)

有谁知道为什么会发生这种情况,是因为我没有正确安装Tensorflow吗?我是否只为缺少的模块安装 python?

小智 6

使用pip install tensorflow_io “不”tensorflow-io