Install pytorch CPU only pip3 install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cpu Install pytorch GPU pip3 install torch torchvision torchaudio Verify import torch print(torch.__version__)