一、Windows(64bit)下安装pytorch-cpu
首先说个题外话,为了日后使用的方便最好是将将conda和pip的软件源修改成清华的源,这样的话,使用conda或者pip安装软件速度会快很多。可使用如下指令进行设置:(当然只是建议,与本次pytorch的安装无关,pytorch都是直接从官网上下载,速度还挺快)
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/
conda config --set show_channel_urls yes
pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple
1.1 使用pip安装
以Python 3.6为例
pip3 install https://download.pytorch.org/whl/cpu/torch-1.0.1-cp36-cp36m-win_amd64.whl
pip3 install torchvision