Cannot install PyTorch on Jetson Xavier NX Developer Kit


I am trying to install pytorch on the Xavier.
I have followed the following instructions for the basic installation:

I installed PyTorch according to these instructions (I get the same errors with the source files of PyTorch)

And After trying to import pytorch with python3, the following error arises

import torch
Traceback (most recent call last):
File “”, line 1, in
File “/home/jetson/.local/lib/python3.6/site-packages/torch/”, line 81, in
from torch._C import *
ImportError: cannot open shared object file: No such file or directory

I have also read the following thread, but don’t know how to get JetPack 4.2 onto the developer kit:

Thanks in advance

Hi @PatrickS, if you are getting that error, you downloaded a version of PyTorch for a previous version of JetPack.

Use this one for JetPack 4.4 production release (L4T R32.4.3)

1 Like

Works! Thanks for your answer.

Is it still possible to install earlier versions of torch because they are required as dependencies for other software packages, such as v1.4.0?

It’s not possible to install earlier versions of PyTorch < 1.6 on JetPack 4.4 production release (L4T R32.4.3), because there were changes that needed to be made in PyTorch 1.6 to support the latest cuDNN 8.0 release that is in JetPack 4.4.