Open caubekimo opened 3 years ago
@caubekimo Can you show the steps you used to install python, tensorflow, tensorflow-io?
I am not familiar with rapidsai's docker image. When I give it a try, the tensorflow is not installed:
$ docker run -i -t --net=host rapidsai/rapidsai:latest
A JupyterLab server has been started!
To access it, visit http://localhost:8888 on your host machine.
Ensure the following arguments were added to "docker run" to expose the JupyterLab server to your host machine:
-p 8888:8888 -p 8787:8787 -p 8786:8786
Make local folders visible by bind mounting to /rapids/notebooks/host
(rapids) root@ip-172-31-87-192:/rapids# python3
Python 3.7.8 | packaged by conda-forge | (default, Nov 17 2020, 23:45:15)
[GCC 7.5.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import tensorflow as tf
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ModuleNotFoundError: No module named 'tensorflow'
>>>
Can you show the steps you used to install tensorflow and tensorflow-io?
Can you show the steps you used to install tensorflow and tensorflow-io?
Sure, I install it with the most easy way:
pip install tensorflow
pip install tensorflow-io
thanks for the try.
@caubekimo Hey I also installed both via pip and got the same error while using tensorflow 2.3.0, however on another machine that was running tensorflow 2.5.0 I was able to import tensorflow_io. Maybe try to upgrade tensorflow (eg. by pip install -U tensorflow
).
EDIT: Another thing that worked for me was using an older realease of tensorflow-io. I use tensorflow 2.3.0 and downgraded tensorflow-io to 0.16.0 (pip install -U tensorflow-io==0.16.0
) and was then able to import it.
@caubekimo Hey I also installed both via pip and got the same error while using tensorflow 2.3.0, however on another machine that was running tensorflow 2.5.0 I was able to import tensorflow_io. Maybe try to upgrade tensorflow (eg. by
pip install -U tensorflow
).EDIT: Another thing that worked for me was using an older realease of tensorflow-io. I use tensorflow 2.3.0 and downgraded tensorflow-io to 0.16.0 (
pip install -U tensorflow-io==0.16.0
) and was then able to import it.
Hi @jalemann , thank you for your relply, it seems to be the version conflict, but i don't know which package.
I shall try your finding, thank you so much~
Describe the bug: just import modules bellow
and the Traceback is:
Environment details: Environment location: Docker 20.10.2
Docker image: rapidsai/rapidsai:latest
Linux Distro/Architecture: Ubuntu 16.04.6 LTS (GNU/Linux 4.4.0-142-generic x86_64)
GPU Model/Driver: GeForce RTX 2080Ti * 4 and driver 418.39
CUDA: 10.1
Tensorflow packages: tensorboard 2.4.0 tensorboard-plugin-wit 1.7.0 tensorflow 2.4.1 tensorflow-datasets 4.2.0 tensorflow-estimator 2.4.0 tensorflow-hub 0.11.0 tensorflow-io 0.17.0 tensorflow-metadata 0.27.0
is this a bug or something I am doing wrong?