我正在尝试从使用 Faiss 进行集群的程序创建一个 EXE,即使我能够将脚本转换为 EXE,当我尝试执行该程序时也会收到以下错误消息。关于我可以做些什么来解决这个问题的任何想法?
Traceback (most recent call last):
File "DocCategorizing.py", line 6, in <module>
File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
File "<frozen importlib._bootstrap>", line 1006, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 688, in _load_unlocked
File "PyInstaller\loader\pyimod03_importers.py", line 495, in exec_module
File "KMeansSupport.py", line 5, in <module>
File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
File "<frozen importlib._bootstrap>", line 1006, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 688, in _load_unlocked
File "PyInstaller\loader\pyimod03_importers.py", line 495, in exec_module
File "faiss\__init__.py", line 30, in <module>
File "faiss\__init__.py", line 14, in _delvewheel_init_patch_0_0_17
File "os.py", line 1117, in add_dll_directory
FileNotFoundError: [WinError 2] The system cannot find the file specified: 'C:\\Users\\TAHAFA~1\\AppData\\Local\\Temp\\_MEI192122\\faiss_cpu.libs'
[18444] Failed to execute script 'DocCategorizing' due to unhandled exception!