Python Forum
Can't find some libraries while importing TensorFlow
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Can't find some libraries while importing TensorFlow
#1
Hello,

While trying to import TensorFlow, I see that some libraries are missed.
>>> import tensorflow as tf
2020-03-16 15:55:06.178671: 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/cuda-10.2/lib64
2020-03-16 15:55:06.178790: 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/cuda-10.2/lib64
2020-03-16 15:55:06.178805: 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.
>>> 
What should I check in my setup ?
Thanks.
Reply
#2
The last line suggests that if you are not using NVidia GPU you can ignore the error. Have you tried proceeding?
Reply
#3
(Mar-16-2020, 04:18 PM)jefsummers Wrote: The last line suggests that if you are not using NVidia GPU you can ignore the error. Have you tried proceeding?

I've GPU on my laptop.
I installed TF using this instruction:
pip3 install --upgrade tensorflow-gpu
Reply
#4
I installed Tensorflor for GPU last week, and i had to download Nvidia Cuda and downloaded som DLL files too. There is guides on how to do it on youtube and google.
Reply
#5
(Mar-18-2020, 04:29 PM)Finpyth Wrote: I installed Tensorflor for GPU last week, and i had to download Nvidia Cuda and downloaded som DLL files too. There is guides on how to do it on youtube and google.
I work on Ubuntu, so no DLLs.
I've also followed some manual that was outdated (unfortunately I realized it later).
Some components that I installed (NVIDIA drivers, CUDA, cuDNN, TF) are unfortunately not compatible.
Reply
#6
see: https://stackoverflow.com/a/60368453
Reply
#7
Thanks. Finally I succeeded to remove whole NVIDIA staff
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Tensorflow cudart64_101.dll could not find dll robdineen 1 3,736 Jul-10-2020, 05:42 AM
Last Post: hussainmujtaba
  Importing tensorflow on OEL6 server Merrish_Dan 1 2,543 May-10-2018, 07:22 AM
Last Post: Larz60+

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020