Home > Blockchain >  Cannot import tensorflow_io
Cannot import tensorflow_io

Time:01-31

I am getting ModuleNotFoundError when I try to import tensorflow_io.

I tried to fix the error as described in ModuleNotFoundError: No module named 'tensorflow_io' but it didn't work with me

CodePudding user response:

I did the following and I was able to have the module imported in my machine,

pip install tensorflow
pip install tensorflow_io

then in a file.py you can import them

import tensorflow as tf
import tensorflow_io as tfio

I figure you need the tensorflow module installed if you want to use the tensorflow_io.

  • Related