#5088 OSError: [WinError 126] 找不到指定的模块。 Error loading

211.90* Posted at: 22 hours ago

Traceback (most recent call last):
File "videotrans\util\checkgpu.py", line 14, in run
File "videotrans\util\gpus.py", line 20, in getset_gpu
File "", line 1027, in _find_and_load
File "", line 1006, in _find_and_load_unlocked
File "", line 688, in _load_unlocked
File "pyimod02_importers.py", line 457, in exec_module
File "torch\__init__.py", line 270, in

_load_dll_libraries()

File "torch\__init__.py", line 266, in _load_dll_libraries

raise err

OSError: [WinError 126] 找不到指定的模块。 Error loading "D:\音频翻译软件\linjunjie040805\win-pyvideotrans-v3.98\_internal\torch\lib\caffe2_nvrtc.dll" or one of its dependencies.


=
system:Windows-10-10.0.26200-SP0
version:v3.98
frozen:True
language:zh
root_dir:D:/音频翻译软件/linjunjie040805/win-pyvideotrans-v3.98

1 Replies

caffe2_nvrtc.dll 加载失败,通常是因为缺少 Visual C++ 运行库或 CUDA 相关依赖未正确安装,也可能是路径包含中文导致部分 DLL 链接异常。请按以下步骤排查:

  1. 安装 Visual C++ 运行库
    下载并安装微软 VC++ 组件(官方链接),重启软件后重试。
  2. 检查路径是否有中文
    你的当前解压路径 D:\音频翻译软件\... 包含中文字符。请将软件重新解压到纯英文目录(例如 D:\pyVideoTrans),再启动 sp.exe
  3. 确认显卡驱动与 CUDA 环境
    如果后续需要使用 GPU 加速,请确保已安装 CUDA 12.8 及 cuDNN 9.x(参考配置指南)。但当前错误发生在导入 torch 模块阶段,即使没有 NVIDIA 显卡也应能正常启动,因此前两步更优先。

如果以上步骤均无效,请提供软件根目录下 logs/ 文件夹中最新的日志文件(复制底部约 30 行内容),以便进一步分析。

Post Your Reply
Open source and free maintenance is not easy. If this project is helpful to you, please consider making a small donation to help the project continue to maintain and update. Dondate: ko-fi.com/jianchang512

Related resource

Similar issues already exist