Cannot install PyTorch on Orin AGX, with JP 5.0.2

I have a custom Orin AGX board with L4T 35.1.0 and JetPack 5.0.2GA.

I followed all steps from page: Installing PyTorch for Jetson Platform


$ python3 -m pip install --upgrade pip; 

$ python3 -m pip install aiohttp numpy=='1.19.4' scipy=='1.5.3' 

$ export "LD_LIBRARY_PATH=/usr/lib/llvm-8/lib:$LD_LIBRARY_PATH"; 

$ python3 -m pip install --upgrade protobuf; 

$ python3 -m pip install --no-cache $TORCH_INSTALL

After trying to do import torch I get the following error message:

Traceback (most recent call last):
File “”, line 1, in
File “/home/nvidia/envs/torch/lib/python3.8/site-packages/torch/”, line 191, in
File “/home/nvidia/envs/torch/lib/python3.8/site-packages/torch/”, line 153, in _load_global_deps
ctypes.CDLL(lib_path, mode=ctypes.RTLD_GLOBAL)
File “/usr/lib/python3.8/ctypes/”, line 373, in init
self._handle = _dlopen(self._name, mode)
OSError: cannot open shared object file: No such file or directory

Hi @gbetsos, do you have CUDA Toolkit installed on your Jetson? My guess is perhaps not, since you said it’s a custom system.

find /usr/local -name '*'


If you don’t have it installed, try installing it with sudo apt-get update && sudo apt-get install cuda-toolkit-11-4

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.