torch

Fix: Python312Libsite-packagestorchlibfbgemm.dll

Fix: Python312Libsite-packagestorchlibfbgemm.dll

Problem: Traceback (most recent call last): File "C:UsersUSERworkspacequery.py", line 20, in <module> model = HuggingFaceEmbeddings(model_name="BAAI/bge-large-zh-v1.5") ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:UsersUSERAppDataLocalProgramsPythonPython312Libsite-packageslangchain_huggingfaceembeddingshuggingface.py", line 53, in __init__ import sentence_transformers # type: ignore[import] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:UsersUSERAppDataLocalProgramsPythonPython312Libsite-packagessentence_transformers__init__.py", line 7, in <module> from sentence_transformers.cross_encoder.CrossEncoder import CrossEncoder File "C:UsersUSERAppDataLocalProgramsPythonPython312Libsite-packagessentence_transformerscross_encoder__init__.py", line 1, in <module> from .CrossEncoder import CrossEncoder File "C:UsersUSERAppDataLocalProgramsPythonPython312Libsite-packagessentence_transformerscross_encoderCrossEncoder.py", line 7, in <module> import torch File "C:UsersUSERAppDataLocalProgramsPythonPython312Libsite-packagestorch__init__.py", line 148, in <module> raise err OSError: [WinError 126] The specified module could not be found. Error loading "C:UsersUSERAppDataLocalProgramsPythonPython312Libsite-packagestorchlibfbgemm.dll" or one of its dependencies. Enter fullscreen mode Exit fullscreen mode Solution: Step 1: download visual studio Step 2: install desktop development with…
Read More
No widgets found. Go to Widget page and add the widget in Offcanvas Sidebar Widget Area.