OSError: [WinError 127] 找不到指定的程序。 Error loading “..... ***.dll“ or one of its dependencies.
Dependencies
A rewrite of the old legacy software "depends.exe" in C# for Windows devs to troubleshoot dll load dependencies issues.
项目地址:https://gitcode.com/gh_mirrors/de/Dependencies

·
离线安装pytorch GPU版本报错
背景:
利用命令conda install --offline <torch package fully name>
安装离线torch包后,然后进入自己创建的虚拟环境(conda activate <environment name>
),输入python
后import torch
时报错。
报错信息:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\Apps\Anaconda\install\envs\chenxin\Lib\site-packages\torch\__init__.py", line 137, in <module>
raise err
OSError: [WinError 127] 找不到指定的程序。 Error loading "C:\Apps\Anaconda\install\envs\chenxin\Lib\site-packages\torch\lib\shm.dll" or one of its dependencies.
报错分析:
根据报错信息关键提示Error loading "...**.dll" or one of its dependencies.
可知,系统缺少shm.dll文件或是该文件的依赖包。
验证报错
进入报错提示的目录,查看是否存在shm.dll*文件,若存在说明是后一种错误,若不存在则是前一种错误。一般情况下都是存在的。
解决方法:
卸载重装




A rewrite of the old legacy software "depends.exe" in C# for Windows devs to troubleshoot dll load dependencies issues.
最近提交(Master分支:8 个月前 )
1997a400 - 3 年前
2f423539 - 3 年前
更多推荐
所有评论(0)