I have an issue for using torch and pytorch with python 3.8 in Xavier AGX. torch.cuda.is_available() False. i need to use python 3.8 to run yolov8 xavier agx.
I tried to follow this link to install torch and pytorch that to be compatible but it does not work for me
because examples and files are for 3.6
kindly, if i can get step by step code for installing pytorch and torch that are compatible for python 3.8 on jetson xavier AGX to get cuda avaliable true
Hi @a.elhanashi, I would recommend reflashing your Xavier with JetPack 5 so that you can use Python 3.8 and our precompiled PyTorch wheels for it. You may be able to build PyTorch from source for Python 3.8 against CUDA 10.2 and JetPack 4.6, but I’m not sure if PyTorch still supports it or not.
You would need to install python3.8-dev and pip3.8, and use python3.8/pip3.8 instead when invoking the build/install commands. I’ve not tried this on JetPack 4 with recent versions of PyTorch.
No, you need to rebuild PyTorch from source to make the wheels for Python 3.8 on JetPack 4. You can’t install wheels built for Python 3.6 in a Python 3.8 environment. If you are unsure about this, I would recommend updating your system to JetPack 5 unless you have some other reason not to.