Last active
August 8, 2021 12:33
-
-
Save soumith/45f61db3379db67414814ad9d5f2a427 to your computer and use it in GitHub Desktop.
Install PyTorch on NVIDIA AGX Xavier using JetPack 4.1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo apt-get install -y libopenblas-dev cmake ninja-build | |
sudo apt-get install -y python-pip | |
sudo pip install virtualenv | |
virtualenv pytorch-env | |
. pytorch-env/bin/activate | |
git clone https://github.com/pytorch/pytorch --recursive | |
pip install -r requirements.txt | |
python setup.py install |
I recommend using the official distribution for Jetson from Nvidia (for Jetson Nano, Jetson TX1/TX2, and Jetson Xavier NX/AGX with JetPack 4.2 and newer).
https://forums.developer.nvidia.com/t/pytorch-for-jetson-version-1-9-0-now-available/72048
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Line 8 should be
pip install -r ./requirements.txt