개발/Python

PyTorch Linux CUDA / CPU pip install / uninstall

강서버 2026. 8. 16. 03:23
반응형

PyTorch Stable (2.13.0) requires Python 3.10 or later.

 

 

1. Installation

 

[ CUDA 13.2 ] pip install

pip install torch torchvision --index-url https://download.pytorch.org/whl/cu132

 

[ CUDA 13.0 ] pip install

pip install torch torchvision

 

[ CUDA 12.6 ] pip install

pip install torch torchvision --index-url https://download.pytorch.org/whl/cu126

 

[ CPU ] pip install

pip install torch torchvision --index-url https://download.pytorch.org/whl/cpu

 

 

 

2. Uninstallation

pip uninstall torch torchvision

 

 

 

Reference : https://pytorch.org/get-started/locally/

 

Get Started

Set up PyTorch easily with local installation or supported cloud platforms.

pytorch.org

 

 

반응형