'Running a python script results in invalid ELF header error on tensorflow wrapper?

I'm getting an error on

/usr/pointNet/lib/python3.7/site-packages/tensorflow/python/_pywrap_tensorflow_internal.so: invalid ELF header

I've tf 1.4 Ubuntu 20.04 Also, I've tried import tensorflow, which fails. Any idea what this error msg signifies?



Solution 1:[1]

I was downloading NVIDIA driver and CUDA on UBUNTU without realizing that I was working on WSL2. For WSL2, the driver should be installed on windows only. The following link helped: https://docs.nvidia.com/cuda/wsl-user-guide/index.html

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 h612