In summary after following the download and install instructions from the forum discussion listed below for pytorch, torchaudio, and torchvision, audio and vision are failing with the following two errors when attempting to include them
torchaudio:
OSError: libtorch_cuda.so: cannot open shared object file: No such file or directory
torchvision:
RuntimeError: operator torchvision::nms does not exist
See below for full details
Setup info:
Jetson Orin AGX 64GB developer edition
Jetpack 6.2
$ python --version
Python 3.10.16
$ sudo apt list --installed nvidia-jetpack
Listing... Done
nvidia-jetpack/stable,now 6.2+b77 arm64 [installed]
$ cat /etc/nv_tegra_release
# R36 (release), REVISION: 4.3, GCID: 38968081, BOARD: generic, EABI: aarch64, DATE: Wed Jan 8 01:49:37 UTC 2025
# KERNEL_VARIANT: oot
TARGET_USERSPACE_LIB_DIR=nvidia
TARGET_USERSPACE_LIB_DIR_PATH=usr/lib/aarch64-linux-gnu/nvidia
Iām trying to follow the discussions on getting pytorch (including vision & audio) installed and working from here
pytorch and torchaudio downloads properly from the links in that post.
The torchvision dowload fails indicating the file is gone
$ python --version
Python 3.10.16
$ wget https://pypi.jetson-ai-lab.dev/jp6/cu126/+f/aa2/2da8dcf4c4c8d/torchvision-
0.21.0-cp310-cp310-linux_aarch64.whl#sha256=aa22da8dcf4c4c8dc897e7922b1ef25cb0fe350e1a358168be87a854ad114531
--2025-05-31 09:42:55-- https://pypi.jetson-ai-lab.dev/jp6/cu126/+f/aa2/2da8dcf4c4c8d/torchvision-0.21.0-cp310-cp310-linux_aarch64.whl
Resolving pypi.jetson-ai-lab.dev (pypi.jetson-ai-lab.dev)... 108.32.95.36
Connecting to pypi.jetson-ai-lab.dev (pypi.jetson-ai-lab.dev)|108.32.95.36|:443... connected.
HTTP request sent, awaiting response... 410 Gone
2025-05-31 09:42:56 ERROR 410: Gone.
To fix this I have substituted the current cu126 torchvision link instead and that downloaded properly, from
wget https://pypi.jetson-ai-lab.dev/jp6/cu126/+f/daa/bff3a07259968/torchvision-0.22.0-cp310-cp310-linux_aarch64.whl#sha256=daabff3a0725996886b92e4b5dd143f5750ef4b181b5c7d01371a9185e8f0402
numpy is installed properly per the instructions.
When I move on from the steps to install in that forum post to verify the installation by starting python3 and using import for torchvision and torchaudio, I get the following errors.
$ python3
Python 3.10.16 (main, Dec 11 2024, 16:18:56) [GCC 11.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import torch
>>> import torchaudio
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/opt/miniconda3/envs/py3.10/lib/python3.10/site-packages/torchaudio/__init__.py", line 2, in <module>
from . import _extension # noqa # usort: skip
File "/opt/miniconda3/envs/py3.10/lib/python3.10/site-packages/torchaudio/_extension/__init__.py", line 38, in <module>
_load_lib("libtorchaudio")
File "/opt/miniconda3/envs/py3.10/lib/python3.10/site-packages/torchaudio/_extension/utils.py", line 60, in _load_lib
torch.ops.load_library(path)
File "/opt/miniconda3/envs/py3.10/lib/python3.10/site-packages/torch/_ops.py", line 1392, in load_library
ctypes.CDLL(path)
File "/opt/miniconda3/envs/py3.10/lib/python3.10/ctypes/__init__.py", line 374, in __init__
self._handle = _dlopen(self._name, mode)
OSError: libtorch_cuda.so: cannot open shared object file: No such file or directory
and a different error for torchvision
$ python3
Python 3.10.16 (main, Dec 11 2024, 16:18:56) [GCC 11.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import torch
>>> import torchvision
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/opt/miniconda3/envs/py3.10/lib/python3.10/site-packages/torchvision/__init__.py", line 10, in <module>
from torchvision import _meta_registrations, datasets, io, models, ops, transforms, utils # usort:skip
File "/opt/miniconda3/envs/py3.10/lib/python3.10/site-packages/torchvision/_meta_registrations.py", line 164, in <module>
def meta_nms(dets, scores, iou_threshold):
File "/opt/miniconda3/envs/py3.10/lib/python3.10/site-packages/torch/library.py", line 1023, in register
use_lib._register_fake(op_name, func, _stacklevel=stacklevel + 1)
File "/opt/miniconda3/envs/py3.10/lib/python3.10/site-packages/torch/library.py", line 214, in _register_fake
handle = entry.fake_impl.register(func_to_register, source)
File "/opt/miniconda3/envs/py3.10/lib/python3.10/site-packages/torch/_library/fake_impl.py", line 31, in register
if torch._C._dispatch_has_kernel_for_dispatch_key(self.qualname, "Meta"):
RuntimeError: operator torchvision::nms does not exist