LINK: fatal error LNK1104: could not open “python311.lib” #3589
Replies: 2 comments
-
It seems like your linker doesn't find python311.lib library. LIB and LIBPATH are windows environment variables which are being used by the linker and compiler. In which folder do you have python311.lib on your computer? please confirm that LIB environment variable include the path for the python311.lib If it didn't solve your problem - try adding python27.lib path also to LIBPATH |
Beta Was this translation helpful? Give feedback.
-
After I added the environment variable
it reported the following error
|
Beta Was this translation helpful? Give feedback.
-
Summary
compile output:
Platform
OS: windows 11
Faiss version: 1.8.0
Installed from: compiled by myself
Faiss compilation options: -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=D:\Softwares\3rdLib\faiss-1.8.0\install -DBUILD_SHARED_LIBS=ON -DBUILD_TESTING=OFF -DBLA_VENDOR=Intel10_64_dyn "-DMKL_LIBRARIES=D:\Softwares\3rdLib\Intel_oneAPI\mkl\2024.0\lib\mkl_intel_ilp64_dll.lib;D:\Softwares\3rdLib\Intel_oneAPI\mkl\2024.0\lib\mkl_intel_thread_dll.lib;D:\Softwares\3rdLib\Intel_oneAPI\mkl\2024.0\lib\mkl_core_dll.lib" -DSWIG_EXECUTABLE=D:\Softwares\3rdLib\swigwin-4.2.1\swig.exe -DSWIG_LIB=D:\Softwares\3rdLib\swigwin-4.2.1\Lib -DPython_EXECUTABLE=C:\Softwares\Python311\python.exe -DPython_LIBRARIES=C:\Softwares\Python311\libs\python311.lib
Running on:
Interface:
Reproduction instructions
Beta Was this translation helpful? Give feedback.
All reactions