如果经常报错出现“ImportError: DLL load failed: 找不到指定的模块。”
就别把torch安装在vir env里面,直接安装在外面(如C:/Anaconda,项目配置环境的时候就写C:/Anaconda/python.exe)。
torch安装在虚拟环境里面很容易出现这种问题,而且将虚拟环境下的site-packge/torch/lib路径加入到系统变量path中也不行
如果经常报错出现“ImportError: DLL load failed: 找不到指定的模块。”
就别把torch安装在vir env里面,直接安装在外面(如C:/Anaconda,项目配置环境的时候就写C:/Anaconda/python.exe)。
torch安装在虚拟环境里面很容易出现这种问题,而且将虚拟环境下的site-packge/torch/lib路径加入到系统变量path中也不行