We have trouble getting Pytorch to work on Orin. We have Jetpack 5.1.1-b56 installed, and downloaded Pytorch 2.0.0 from this website: PyTorch for Jetson
The output of the installation:
pip3 install numpy torch-2.0.0+nv23.05-cp38-cp38-linux_aarch64.whl
Defaulting to user installation because normal site-packages is not writeable
Processing ./torch-2.0.0+nv23.05-cp38-cp38-linux_aarch64.whl
Requirement already satisfied: numpy in /usr/lib/python3/dist-packages (1.17.4)
Requirement already satisfied: filelock in /home/nvidia/.local/lib/python3.8/site-packages (from torch==2.0.0+nv23.05) (3.12.2)
Requirement already satisfied: jinja2 in /home/nvidia/.local/lib/python3.8/site-packages (from torch==2.0.0+nv23.05) (3.1.2)
Requirement already satisfied: networkx in /home/nvidia/.local/lib/python3.8/site-packages (from torch==2.0.0+nv23.05) (3.1)
Requirement already satisfied: sympy in /home/nvidia/.local/lib/python3.8/site-packages (from torch==2.0.0+nv23.05) (1.12)
Requirement already satisfied: typing-extensions in /home/nvidia/.local/lib/python3.8/site-packages (from torch==2.0.0+nv23.05) (4.7.1)
Requirement already satisfied: MarkupSafe>=2.0 in /home/nvidia/.local/lib/python3.8/site-packages (from jinja2->torch==2.0.0+nv23.05) (2.1.3)
Requirement already satisfied: mpmath>=0.19 in /home/nvidia/.local/lib/python3.8/site-packages (from sympy->torch==2.0.0+nv23.05) (1.3.0)
DEPRECATION: distro-info 0.23ubuntu1 has a non-standard version number. pip 23.3 will enforce this behaviour change. A possible replacement is to upgrade to a newer version of distro-info or contact the author to suggest that they release a version with a conforming version number. Discussion can be found at https://github.com/pypa/pip/issues/12063
DEPRECATION: python-debian 0.1.36ubuntu1 has a non-standard version number. pip 23.3 will enforce this behaviour change. A possible replacement is to upgrade to a newer version of python-debian or contact the author to suggest that they release a version with a conforming version number. Discussion can be found at https://github.com/pypa/pip/issues/12063
Installing collected packages: torch
Successfully installed torch-2.0.0+nv23.5
When we type this in the terminal: Python3 → import torch, the following error message is shown:
>>> import torch
Traceback (most recent call last):
File "/home/nvidia/.local/lib/python3.8/site-packages/torch/__init__.py", line 168, in _load_global_deps
ctypes.CDLL(lib_path, mode=ctypes.RTLD_GLOBAL)
File "/usr/lib/python3.8/ctypes/__init__.py", line 373, in __init__
self._handle = _dlopen(self._name, mode)
OSError: libcurand.so.10: 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 "<stdin>", line 1, in <module>
File "/home/nvidia/.local/lib/python3.8/site-packages/torch/__init__.py", line 228, in <module>
_load_global_deps()
File "/home/nvidia/.local/lib/python3.8/site-packages/torch/__init__.py", line 189, in _load_global_deps
_preload_cuda_deps(lib_folder, lib_name)
File "/home/nvidia/.local/lib/python3.8/site-packages/torch/__init__.py", line 154, 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/python38.zip', '/usr/lib/python3.8', '/usr/lib/python3.8/lib-dynload', '/home/nvidia/.local/lib/python3.8/site-packages', '/usr/local/lib/python3.8/dist-packages', '/usr/lib/python3/dist-packages', '/usr/lib/python3.8/dist-packages']
We believe this might have something to due with conflicting/missing CUDA versions. We currently have CUDA 11.4 installed, but not 10.