windows10下安装python pytorch cpu 版本的

1.安装anaconda

2.安装pycharm

3.cmd命令行安装pytorch

 

pip install http://download.pytorch.org/whl/cpu/torch-0.4.0-cp36-cp36m-win_amd64.whl

在安装的过程中如果出现以下提示:distributed 1.21.8 requires msgpack, which is not installed.

对策:

pip install msgpack-python

pip install msgpack

最后

pip install torchvision

简单测试安装是否成功

  • python
  • import torch
  • print(torch.__version__)

如果输出0.4.0,Windows下的PyTorch0.4.0安装成功!!!

 

你可能感兴趣的:(python,pytorch)