美文网首页
windows下import torch出错,from torc

windows下import torch出错,from torc

作者: 陈查理的书 | 来源:发表于2019-04-05 19:24 被阅读0次

Downloadwin-64/intel-openmp-2018.0.0-8.tar.bz2

把 Library\bin 中两个.ddl文件放到

(1)如果直接安装python则放到Python dll path: C:\Users\username\AppData\Local\Programs\Python\Python36\DLLs(you can locate python path usingwhere pythoncommand)

(2)如果使用anaconda3的话则放到:D:\Anaconda3\DLLs

配置python的环境变量,我的电脑——属性——高级系统设置——高级——环境变量——双击进入path——添加,将第二步的DLLS文件夹路径添加到环境变量中即可。

这时候问题应该已经解决了,如果之后还遇到了这个问题:ImportError: numpy.core.multiarray failed to import

则卸载numpy再重新安装

pip uninstall numpy

pip install numpy

相关文章

网友评论

      本文标题:windows下import torch出错,from torc

      本文链接:https://www.haomeiwen.com/subject/soekiqtx.html