So, im trying to install the pytorch with cuda support in my jetson orin NX (dev kit), i already have done a fresh install using the SDK Manager and i have jetpack 6.0, and ubuntu 22.04, i tried to follow the instructions from the nvidia manual, and configured a virtual enviroment: https://docs.nvidia.com/deeplearning/frameworks/install-pytorch-jetson-platform/index.html, the issue is that im getting an error in the pre-requisites installation of the libopenblas-dev like the following: sudo apt-get -y update;
sudo apt-get -y install python3-pip libopenblas-dev;
… OTHER LINKS …
Ign:9 https://packagecloud.io/headmelted/codebuilds/debian stretch InRelease
Err:10 https://packagecloud.io/headmelted/codebuilds/debian stretch Release
404 Not Found [IP: 2600:1f1c:2e5:6901:e375:73d1:461b:b889 443]
Reading package lists… Done
E: The repository ‘https://packagecloud.io/headmelted/codebuilds/debian stretch Release’ does not have a Release file.
N: Updating from such a repository can’t be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
Reading package lists… Done
Building dependency tree… Done
Reading state information… Done
libopenblas-dev is already the newest version (0.3.20+ds-1).
python3-pip is already the newest version (22.0.2+dfsg-1ubuntu0.4).
0 upgraded, 0 newly installed, 0 to remove and 18 not upgraded.,
Besides that i kept following the instructions and successfully installed the torch in the right version as it shows in the pip list, but when i try to import torch in a python program i get the following error: python3
Python 3.10.12 (main, Mar 22 2024, 16:50:05) [GCC 11.4.0] on linux
Type “help”, “copyright”, “credits” or “license” for more information.
import torch
Traceback (most recent call last):
File “/home/cedri/Documents/torch_test/venv/lib/python3.10/site-packages/torch/init.py”, line 225, in _load_global_deps
ctypes.CDLL(global_deps_lib_path, mode=ctypes.RTLD_GLOBAL)
File “/usr/lib/python3.10/ctypes/init.py”, line 374, in init
self._handle = _dlopen(self._name, mode)
OSError: libnvToolsExt.so.1: cannot open shared object file: No such file or directory
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File “”, line 1, in
File “/home/cedri/Documents/torch_test/venv/lib/python3.10/site-packages/torch/init.py”, line 288, in
_load_global_deps()
File “/home/cedri/Documents/torch_test/venv/lib/python3.10/site-packages/torch/init.py”, line 246, in _load_global_deps
_preload_cuda_deps(lib_folder, lib_name)
File “/home/cedri/Documents/torch_test/venv/lib/python3.10/site-packages/torch/init.py”, line 168, in _preload_cuda_deps
raise ValueError(f"{lib_name} not found in the system path {sys.path}")
ValueError: libcublas.so.*[0-9] not found in the system path [‘’, ‘/usr/lib/python310.zip’, ‘/usr/lib/python3.10’, ‘/usr/lib/python3.10/lib-dynload’, ‘/home/cedri/Documents/torch_test/venv/lib/python3.10/site-packages’],
I suspect that could be a problem related to the pre-requistes installation error, but as the link gives a 404 error, i dont have a clue on how to solve this.