I have Jetson Orin Nano with Ubuntu 22.04, JetPack 6.2, CUDA 12.6, Python 3.10 and I have a problem with installing PyTorch. I work in my miniconda3 environment.
Installation went well, but after trying to import torch i got an error message:
>>import torch
Traceback (most recent call last):
File “”, line 1, in
File “/home/bat/miniconda3/envs/py310/lib/python3.10/site-packages/torch/init.py”, line 415, in
from torch._C import * # noqa: F403
ImportError: /lib/aarch64-linux-gnu/libnccl.so.2: file too short
It seems to be working but i couldn’t find a torchvision version (20.0.0) compatible with torch 2.5.0. I looked through this forum looking for an answer, but every link i tried to use, lead to not-working websites. For example: “https://pypi.jetson-ai-lab.dev“
We have tested the PyTorch package on JetPack 6.2.1 and it can work as expected.
Could you check if the CUDA package is well installed in your environment first?
$ python3
Python 3.10.12 (main, Feb 4 2025, 14:57:36) [GCC 11.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import torch
>>> torch.__version__
'2.9.0.dev20250825+cu126.g4651aaa'
>>> torch.cuda.is_available()
True
>>> torch.version.cuda
'12.6'
>>> torch.distributed.is_available()
True
>>> torch.distributed.is_nccl_available()
True