Problem getting TensorFlow to work


I just received my Xavier Dev Kit and I am trying to get Tensorflow to work. For installation I followed the instructions given here:
The setup finishes successfully but when I try to import tensorflow in python I get the error:

ImportError: cannot open shared object file: No such file or directory

I looked through the filesystem and could’t find the usual installation directory for cuda (i.e. /usr/lib/cuda) or the specified file at all. So I reflashed the device and with JP 4.1 and made sure the cuda option was set to install. However the problem remains. Am I missing something? Any advice on how to proceed would be helpful.

Check “/usr/local/cuda/” ("/usr/local/cuda-10/").

There is no such directory so I guess CUDA isn’t installed. I figured that CUDA would be preinstalled. But I even flashed the device and selected CUDA sdk explicitly.


Do you get any error when installing CUDA with JetPack?
If yes, please share it with us.

Besides, could you just try to reflash your device again?
This issue should be fixed if CUDA can be well-installed after reflashing.

Thanks and please let us know the results.

I got it working eventually. The problem was that the installation of CUDA failed because my board didn’t have an internet connection at that point. I missed that some dependencies would have to be downloaded. Connecting both host and board to a router solved the problem. TF is working like a charm now.

Thanks for the help.