Windows下經過pip安裝PyTorch 0.4.0 import 不成功 anaconda

問題:經過pip安裝PyTorch 0.4.0成功,可是import時報錯。git

  import torch
  File "D:\Python\Python36\lib\site-packages\torch\__init__.py", line 78, in <module>
    from torch._C import *
ImportError: DLL load failed: 找不到指定的模塊。github

解決:app

  • put the dll files in Library\bin into a dir
  • append the path of it to the environment variable PATH.

參考:ip

from torch._C import * (ImportError: DLL load failed: The specified module could not be found.ci

相關文章
相關標籤/搜索