#5292 RuntimeError: mkl_malloc: failed to allocate memory

1.164* Posted at: 2 days ago

Traceback (most recent call last):
File "videotrans\process\stt_fun.py", line 346, in faster_whisper
File "faster_whisper\transcribe.py", line 689, in init
RuntimeError: mkl_malloc: failed to allocate memory


=
system:Windows-10-10.0.26100-SP0
version:v3.98
frozen:True
language:zh
root_dir:C:/Users/320124233/OneDrive - Philips/文件/win-pyvideotrans-v3.98-317

1 Replies

这是由于软件解压路径中包含中文和空格(OneDrive - Philips/文件/...),导致 faster-whisper 模型初始化时 mkl_malloc 内存分配失败。

解决方案:

  1. 将整个 win-pyvideotrans-v3.98-317 文件夹移动到不含中文、空格和特殊符号的纯英文路径下,例如 D:\pyVideoTrans
  2. 重新启动 sp.exe

如果移动后仍报错,可能是系统内存不足,请关闭其他占用内存的进程后重试。

请查阅相关文档:

Post Your Reply