I tried to install pytorch on Jetson Orin 64G developer kit, which has the jetpack 5.1 and cuda-toolkit 11.4 (default installation). By following instructions at:
Run the install:
pip3 install torch-2.0.0+nv23.05-cp38-cp38-linux_aarch64.whl
ERROR: torch-2.0.0+nv23.05-cp38-cp38-linux_aarch64.whl is not a supported wheel on this platform.
@Nqubits you have a conda environment active that is running Python 3.11, not the native version of Python 3.8 that these PyTorch wheels were built for on JetPack 5. Either disable anaconda or switch it to Python 3.8, or you can rebuild PyTorch from source for Python 3.11 by following instructions similar to this post:
I will try to disable anaconda environment, only use the python 3.8 to install jetson pytorch.
Since my orin is running jetpack 5.1, do I need to upgrade jetpack 5.1.2 in order to use: https://developer.download.nvidia.com/compute/redist/jp/v512/pytorch/ [torch-2.1.0a0+41361538.nv23.06-cp38-cp38-linux_aarch64.whl ?
And, is pytorch 2.2 released?
[torch-2.2.0a0+6a974be.nv23.11-cp310-cp310-linux_aarch64.whl]
Question: since anaconda manages the python packages very well, is there a workaround to install jetson pytorch in the conda environment, beside build pytorch from source codes?
I figure out the issue to install pytorch on jetson orin,
torch-2.0.0+nv23.05-cp38-cp38-linux_aarch64.whl
which has to use the python3.8 to install, since this wheel is in cp38 format built on the python3.8 environment.
After installation, the python environment can’t be upgraded to other version, such as 3.11. I suggest here:
Update the installation guide to denote the python3.8 requirement.
Hi @Nqubits, we provide the prebuilt PyTorch binaries for the default version of Python that comes in JetPack. So for JetPack 5 that’s Python 3.8, and for JetPack 6 it’s Python 3.10. For other versions of Python, you would need to build PyTorch from source - I have a Dockerfile that I use for doing this here: