install pytorch pip code example
Example 1: install pip ubuntu
sudo apt install python3-pip
Example 2: install pycrypto
pip install pycrypto
Example 3: get pytorch version
import torch
print(torch.__version__)
Example 4: conda install pytorch
conda install pytorch torchvision torchaudio cudatoolkit=10.2 -c pytorch
Example 5: python pip install
## To install Pip, first download get-pip.py from:
https://bootstrap.pypa.io/get-pip.py
## Then run the following command in the command line
## in the folder where the file has been saved.
python get-pip.py
Example 6: 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