ufoym / deepo

Setup and customize deep learning environment in seconds.
http://ufoym.com/deepo
MIT License
6.32k stars 750 forks source link

import tensorflow failed with errors related to some missing libraries #129

Closed fadishaar84 closed 2 years ago

fadishaar84 commented 4 years ago

I run this image: nvidia-docker run --gpus all -it ufoym/deepo bash root@e7afbdd12657:/# python Python 3.6.9 (default, Nov 7 2019, 10:44:02) [GCC 8.3.0] on linux Type "help", "copyright", "credits" or "license" for more information.

import tensorflow as tf 2020-02-06 17:27:31.522769: W tensorflow/stream_executor/platform/default/dso_loader.cc:55] Could not load dynamic library 'libnvinfer.so.6'; dlerror: libnvinfer.so.6: cannot open shared object file: No such file or directory; LD_LIBRARY_PATH: /usr/local/lib:/usr/local/nvidia/lib:/usr/local/nvidia/lib642020-02-06 17:27:31.522943: W tensorflow/stream_executor/platform/default/dso_loader.cc:55] Could not load dynamic library 'libnvinfer_plugin.so.6'; dlerror: libnvinfer_plugin.so.6: cannot open shared object file: No such file or directory; LD_LIBRARY_PATH: /usr/local/lib:/usr/local/nvidia/lib:/usr/local/nvidia/lib64 2020-02-06 17:27:31.522969: W tensorflow/compiler/tf2tensorrt/utils/py_utils.cc:30] Cannot dlopen some TensorRT libraries. If you would like to use Nvidia GPU with TensorRT, please make sure the missing libraries mentioned above are installed properly.

ufoym commented 4 years ago

It is a warning, and a problem with the latest TF. But TF should continue running. See https://github.com/tensorflow/tensorflow/issues/35968.

gkd2020 commented 4 years ago

It is a warning, and a problem with the latest TF. But TF should continue running. See tensorflow/tensorflow#35968.

I have this problem, too

root@6c81320034e2:/# python Python 3.6.9 (default, Nov 7 2019, 10:44:02) [GCC 8.3.0] on linux Type "help", "copyright", "credits" or "license" for more information.

import tensorflow 2020-02-19 02:02:29.422066: W tensorflow/stream_executor/platform/default/dso_loader.cc:55] Could not load dynamic library 'libnvinfer.so.6'; dlerror: libnvinfer.so.6: cannot open shared object file: No such file or directory; LD_LIBRARY_PATH: /usr/local/lib:/usr/local/nvidia/lib:/usr/local/nvidia/lib64 2020-02-19 02:02:29.422170: W tensorflow/stream_executor/platform/default/dso_loader.cc:55] Could not load dynamic library 'libnvinfer_plugin.so.6'; dlerror: libnvinfer_plugin.so.6: cannot open shared object file: No such file or directory; LD_LIBRARY_PATH: /usr/local/lib:/usr/local/nvidia/lib:/usr/local/nvidia/lib64 2020-02-19 02:02:29.422187: W tensorflow/compiler/tf2tensorrt/utils/py_utils.cc:30] Cannot dlopen some TensorRT libraries. If you would like to use Nvidia GPU with TensorRT, please make sure the missing libraries mentioned above are installed properly.

tensorflow/tensorflow#35968. The answer puzzled me. I do not know how to slove it.

FMZHOU commented 4 years ago

got this problem too, but gpu is avaible, maybe image

ufoym commented 2 years ago

Now the problem should be fixed (in the latest deepo images with latest TF).