Fix KMP duplicate lib error on macOS for dependencies (PyTorch/FAISS)
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
import os
|
||||
import sys
|
||||
|
||||
|
||||
# The macOS wheels for PyTorch (used by Whisper) and FAISS bundle different
|
||||
# libomp copies. FAISS aborts the process when its copy initializes second.
|
||||
if sys.platform == "darwin":
|
||||
os.environ.setdefault("KMP_DUPLICATE_LIB_OK", "TRUE")
|
||||
|
||||
Reference in New Issue
Block a user