【更新时间2020.5.7】pytorch 1.5+win10 +python3.7+cuda10.2 安装
点击进入官网 https://pytorch.org/
pip安装
Python3.7+pip安装cpu版本
pip install torch==1.5.0+cpu torchvision==0.6.0+cpu -f https://download.pytorch.org/whl/torch_stable.html
Python3.7+pip安装gpu版本
目前gpu版本支持cuda8.0,cuda9.0和cuda10.0,请选择对应的版本下载安装,不要同时执行下面三个命令!喜欢conda的可以选择
pip install torch===1.5.0 torchvision===0.6.0 -f https://download.pytorch.org/whl/torch_stable.html
conda安装
conda install pytorch torchvision cudatoolkit=10.2 -c pytorch
不得不说,比tensorflow 的安装方便了1000倍!