I’m sorry, I don’t currently (but I hope to setup an automated PyTorch builder for jetson-containers soon-ish to help others with things like this. In the meantime, have you tried disabling zram, mounting more swap (ideally on NVME), and disabling the GUI?
The latest version of torchvision will not compile due to a change in torchvision/_meta_registrations.py which now does an import torch._custom_ops which is not present in the current nVidia CUDA version of torch.
The last working version was v0.16.0-rc5 and the last non-rc version was v0.15.0, which you can get by doing:
git checkout v0.16.0-rc5
or git checkout v0.15.2 (I did not try this version, so YMMV)
I am getting this error when installing torchvision. I currently have 2 CUDA versions (11.4 and 12.2) but I would like to use the 12.2 version since I am working on a project that doesn’t support CUDA 11.4 version.
RuntimeError:
The detected CUDA version (12.2) mismatches the version that was used to compile
PyTorch (11.4). Please make sure to use the same CUDA versions.
I also encountered this error when installing Pytorch though it’s successfully installed after this:
ERROR: Invalid requirement: 'LD_LIBRARY_PATH=/usr/lib/llvm-8/lib:/usr/local/cuda-12.2/lib64'
Hint: It looks like a path. File 'LD_LIBRARY_PATH=/usr/lib/llvm-8/lib:/usr/local/cuda-12.2/lib64' does not exist.
Hi! Thanks for your reply, I tried your method to change the cuda path. However, the problem is exist, I unable to install suitable version of torchvision.
Hi @SeraphinaAki, you would also need to compile PyTorch against CUDA 12.2.
Hi @3a817021, is /usr/local/cuda/bin in your environment’s $PATH ? You might also just want to try l4t-pytorch container, it already has torchvision built/installed in it.
Hi @SeraphinaAki, I haven’t tried it with CUDA 12.2, but there are instructions at the top of this post (under the Build from source section) for building PyTorch from source. At this point, I would probably go with PyTorch 2.1.
Command “python setup.py egg_info” failed with error code 1 in /tmp/pip-build-1xi8ijvy/pyzmq/
I am getting this command when i tried the pip3 install jupyter code
Hi @simon1981jain, are you trying to install PyTorch or Jupyter? If you’re trying to install JupyterLab on Jetson Nano, you can follow a tutorial like below, or use jupyterlab container (you can also use l4t-ml container, which has jupyter + PyTorch/tensorflow/ect already installed)