conda install pytorch with cuda gpu code example Example: mac install pytorch 3.6 conda install pytorch torchvision -c pytorch