【发布时间】:2018-05-06 00:01:27
【问题描述】:
我已经尝试在 Windows 10 系统上使用 Anaconda 安装 Pytorch,但每次尝试都会收到各种错误。我从https://anaconda.org/peterjc123/pytorch/files 下载了该软件包的 Windows 兼容 tar 文件,并且显然能够使用 conda install filename.tar.bz2 安装该软件包。显然,我的意思是 Pytorch 出现在我为使用 Pytorch 而设置的环境中可用的软件包列表中。但是当我去加载包时,我得到了这个错误:
>>> import torch
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\Users\conner\Anaconda3\envs\pytorch\lib\site-packages\torch\__init__.py", line 76, in <module>
from torch._C import *
ImportError: DLL load failed: The specified module could not be found.
我还尝试使用 conda update --all 更新 Anaconda,这引发了相关警告:
(pytorch) C:\Users\User 1\Downloads>conda update --all
Fetching package metadata .............
Solving package specifications:
Warning: ['Dependency missing in current win-64 channels: \n - pytorch -> mkl >=2018'], skipping
Fetching package metadata .............
Solving package specifications:
Warning: ['Dependency missing in current win-64 channels: \n - pytorch -> mkl >=2018'], skipping
NoPackagesFoundError: Dependency missing in current win-64 channels:
- pytorch -> mkl >=2018
mkl 包也显示在连接到pytorch 环境的包列表中。我将错误解释为没有足够新的mkl 版本。那会是正确的吗?还有其他见解或建议吗?我真的需要安装 pytorch。
【问题讨论】:
标签: python windows installation anaconda pytorch