pip install pytorch linux code example
Example 1: pip install pytorch windows
conda install pytorch torchvision torchaudio cudatoolkit=10.2 -c pytorch
Example 2: install pytorch
NOTE: Python 3.9 users will need to add '-c=conda-forge' for installationconda install pytorch torchvision torchaudio cudatoolkit=10.2 -c pytorch