how to install pytorch on cmd code example Example: pip install pytorch windows conda install pytorch torchvision torchaudio cudatoolkit=10.2 -c pytorch