First, the faiss package was installed by changing the mirror source, but an error was reported ImportError: DLL load failed: The specified module could not be found
method:
Download the .whl
link of the corresponding Python version from the Tsinghua mirror as follows:
https://pypi.tuna.tsinghua.edu.cn/simple/faiss-cpu/
Then find the location of the downloaded file, open cmd, activate the environment, and install it with pip use
Replenish
If the error AttributeError: module 'faiss' has no attribute 'StandardGpuResources' is reported, you can only switch to Linux. According to the official document, this is only applicable to Linux; therefore, if you use this function, you can only use Linux. The official installation file is as follows:
https
: //github.com/facebookresearch/faiss/blob/master/INSTALL.md