Pytorch for Jetson ORIN

When i’m installing torchvison
running python3 setup.py install --user
i met error: [Errno 2] No such file or directory: ‘:/usr/local/cuda/bin/nvcc’
but by nvcc --version, i can get :
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2022 NVIDIA Corporation
Built on Sun_Oct_23_22:16:07_PDT_2022
Cuda compilation tools, release 11.4, V11.4.315
Build cuda_11.4.r11.4/compiler.31964100_0

Hi,

Do you run the TorchVision installation in the virtual environment?
Or could you run the below command and try the installation again?

$ echo 'export LD_LIBRARY_PATH=/usr/local/cuda-11.4/lib64:$LD_LIBRARY_PATH' >> ~/.bashrc
$ echo 'export PATH=/usr/local/cuda-11.4/bin:$PATH' >> ~/.bashrc
$ source ~/.bashrc

Thanks.

Instead of installing it in a virtual environment, I installed it directly under /Home.
I tried these commands :
$ echo ‘export LD_LIBRARY_PATH=/usr/local/cuda-11.4/lib64:$LD_LIBRARY_PATH’ >> ~/.bashrc
$ echo ‘export PATH=/usr/local/cuda-11.4/bin:$PATH’ >> ~/.bashrc
$ source ~/.bashrc
and the problem was solved successfully, thanks!
However, there are the above two commands in ~/.bashrc before, but there is no way to successfully install, I do not know what the problem is.

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