在 Windows 10 上安装 Pytorch

Installing Pytorch on Windows 10

我正在尝试使用以下命令在 Windows 10 anaconda 环境和 Python 3.6 上安装 Pytorch:

conda install -c peterjc123 pytorch 

但它给出了以下错误:

UnsatisfiableError: The following specifications were found to be in conflict: - curl -> krb5=1.14 -> *[track_features=vc14] - curl -> libssh2=1.8 -> vc==14 - pytorch Use "conda info " to see the dependencies for each package.

新更新的 12 月代码也是如此

conda install -c peterjc123 pytorch cuda80

有什么方法可以帮助我在 Windows 上安装 Pytorch 吗?

尝试先使用 pip3 安装(如果没有 pip3,请安装),然后执行以下命令:

pip3 安装 pytorch

然后在 conda 上重复这个过程,也试试没有 peterjc123 的 conda。

我通过加载 pytorch 的 tar.bz2 文件解决了这个问题

我用这个命令解决了

pip3 install http://download.pytorch.org/whl/cu92/torch-0.4.1-cp36-cp36m-win_amd64.whl