hnswlib icon indicating copy to clipboard operation
hnswlib copied to clipboard

Can this program run on windows 11 by compiling source code?

Open shiwanghua opened this issue 1 year ago • 2 comments

shiwanghua avatar Aug 21 '24 13:08 shiwanghua

Does it need to install MKL ?

shiwanghua avatar Aug 22 '24 01:08 shiwanghua

https://learn.microsoft.com/en-us/cpp/build/reference/linking https://learn.microsoft.com/en-us/cpp/build/reference/cl-environment-variables

Warning: You need to install and use the correct version of python, otherwise the installed python version will succeed building an invalid file.

https://cmake.org/cmake/help/latest/module/FindPythonLibs.html

Add to Windows system environment variables

PYTHON_INCLUDE_DIRS=path to python

Alternative in command prompt

SET LIB=python\libs SET INCLUDE=python\include pip install hnswlib

For ComfyUI:

SET LIB=python\libs SET INCLUDE=python\include .\venv\Scripts\activate.bat pip install hnswlib .\venv\Scripts\deactivate.bat SET LIB= SET INCLUDE=

MartinMoenks avatar Jan 30 '25 13:01 MartinMoenks