pytorch installation code example

Example 1: conda install pytorch

conda install pytorch torchvision torchaudio cudatoolkit=10.2 -c pytorch

Example 2: pytorch install

pip install torch==1.8.1+cu102 torchvision==0.9.1+cu102 torchaudio===0.8.1 -f https://download.pytorch.org/whl/torch_stable.html

Example 3: pytorch anaconda install windows

conda install pytorch torchvision cudatoolkit=10.1 -c pytorch

Example 4: install torch anaconda

conda install pytorch torchvision cudatoolkit=10.0 -c pytorch

Example 5: pytorch

pip install torch===1.5.0 torchvision===0.6.0 -f https://download.pytorch.org/whl/torch_stable.html

Example 6: PyTorch

conda install pytorch torchvision cudatoolkit=10.2 -c pytorch