ModuleNotFoundError: No module named 'tensorflow_io'

Question:

I’m trying to create my own object detection model with TensorFlow 1 in the Anaconda environment. I wanted to use TensorFlow 1.15 and I followed this tutorial
https://github.com/EdjeElectronics/TensorFlow-Lite-Object-Detection-on-Android-and-Raspberry-Pi

Cuz I’m new to this I followed tutorials on how to set up TensorFlow when I reach the step on setting up TensorFlow, I used the command
pip install .
to install TensorFlow using the setup.py in the research directory

After the installation, I used the command to test the TensorFlow setup to verify it works:

python buildersmodel_builder_tf1_test.py

However, I face the below error:

**(tensorflow1) C:tensorflow1modelsresearchobject_detection>python buildersmodel_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 "buildersmodel_builder_tf1_test.py", line 21, in
from object_detection.builders import model_builder
File "C:tensorflow1modelsresearchobject_detectionbuildersmodel_builder.py", line 37, in
from object_detection.meta_architectures import deepmac_meta_arch
File "C:tensorflow1modelsresearchobject_detectionmeta_architecturesdeepmac_meta_arch.py", line 28, in
import tensorflow_io as tfio # pylint_disable=g-import-not-at-top
ModuleNotFoundError: No module named 'tensorflow_io'**

Does anyone know why does this happens, Is it because I didn’t install the Tensorflow correctly? Do I just do python install for the missing module?

Asked By: yeashen

||

Answers:

Try to install the library using pip:

pip install tensorflow-io
Answered By: abdou_dev

Use pip install tensorflow_io
NOT tensorflow-io

Answered By: Amber
Categories: questions Tags: ,
Answers are sorted by their score. The answer accepted by the question owner as the best is marked with
at the top-right corner.