Useful or not, from you.
tensorflow Could not load dynamic library ''

<em>Please make sure that this is a build/installation issue. As per our GitHub Policy, we only address code/doc bugs, performance issues, feature requests and build/installation issues on GitHub. tag:build_template</em>

System information

  • OS Platform and Distribution (e.g., Linux Ubuntu 16.04): Linux Ubuntu 20.04
  • TensorFlow installed from (source or binary): binary
  • TensorFlow version: 2.4.0
  • Python version: 3.7.9
  • Installed using virtualenv? pip? conda?: pip
  • Bazel version (if compiling from source):
  • GCC/Compiler version (if compiling from source):
  • CUDA/cuDNN version: libcudnn8_8.0.5.39-1+cuda11.0_amd64.deb (I also installed the dev version)
  • NVIDIA Driver Version: 450.80.02
  • GPU model and memory: GeForce RTX 2080 Super with Max-Q Design

Describe the problem

Provide the exact sequence of commands / steps that you executed before running into the problem I tried following the instructions as described in:

  • I installed Ubuntu 20.04 (which installed the NVIDIA driver)
  • Installed python using pyenv
  • sudo apt install nvidia-cuda-toolkit
  • pip install tensorflow
  • Installed: libcudnn8_8.0.5.39-1+cuda11.0_amd64.deb
  • (saw that it failed to find '')
  • Installed: libcudnn8-dev_8.0.5.39-1+cuda11.0_amd64.deb
  • (still failed to find '')

Is there a way for me to check which part of the installation broke? Any ideas on what I can do to fix this? Thanks!

Any other info / logs Include any logs or source code that would be helpful to diagnose the problem. If including tracebacks, please include the full traceback. Large logs and files should be attached.

PyDev console: starting.
Python 3.7.9 (default, Dec 22 2020, 21:13:51) 
[GCC 9.3.0] on linux
>>> import tensorflow as tf
>>> print("Num GPUs Available: ", len(tf.config.experimental.list_physical_devices('GPU')))
2020-12-22 22:56:35.044676: W tensorflow/stream_executor/platform/default/] Could not load dynamic library ''; dlerror: cannot open shared object file: No such file or directory
2020-12-22 22:56:35.044691: I tensorflow/stream_executor/cuda/] Ignore above cudart dlerror if you do not have a GPU set up on your machine.
/home/ido/TeraResearch/venv/lib/python3.7/site-packages/pandas/compat/ UserWarning: Could not import the lzma module. Your installed Python is incomplete. Attempting to use lzma compression will result in a RuntimeError.
2020-12-22 22:56:35.938373: I tensorflow/compiler/jit/] Not creating XLA devices, tf_xla_enable_xla_devices not set
2020-12-22 22:56:35.938801: I tensorflow/stream_executor/platform/default/] Successfully opened dynamic library
2020-12-22 22:56:37.494184: E tensorflow/stream_executor/cuda/] failed call to cuInit: CUDA_ERROR_UNKNOWN: unknown error
2020-12-22 22:56:37.494273: I tensorflow/stream_executor/cuda/] retrieving CUDA diagnostic information for host: ido-ml
2020-12-22 22:56:37.494291: I tensorflow/stream_executor/cuda/] hostname: ido-ml
2020-12-22 22:56:37.494480: I tensorflow/stream_executor/cuda/] libcuda reported version is: 450.80.2
2020-12-22 22:56:37.494544: I tensorflow/stream_executor/cuda/] kernel reported version is: 450.80.2
2020-12-22 22:56:37.494561: I tensorflow/stream_executor/cuda/] kernel version seems to match DSO: 450.80.2
Num GPUs Available:  0
That's a useful answer
Without any help


Please, refer the tutorial from here.Thanks!