pip install pytorch and torchvision code example
Example 1: get pytorch version
import torch
print(torch.__version__)
Example 2: mac install pytorch 3.6
conda install pytorch torchvision -c pytorch
import torch
print(torch.__version__)
conda install pytorch torchvision -c pytorch