tensorflow error: internal: libdevice not found at ./libdevice.10.bc Ubuntu – Solved

Context: I got this error when running tensorflow with python on Ubuntu 20.04, after installing the cuda toolkit by choosing the local deb installation file.

Solution: the solution was to download and install the deb network file instead

https://developer.nvidia.com/cuda-downloads?target_os=Linux&target_arch=x86_64&Distribution=Ubuntu&target_version=20.04