以下解决方案仅供参考。
ImportError: DLL load failed while importing _swigfaiss
faiss版本和python版本对应出现问题,可重新下载
conda create -y -n faiss python=3.8 conda activate faiss conda install -c pytorch faiss-cpu=1.7.2
AssertionError: CPU training is not allowed.
将pytorch的cpu版本改为版本号相同的GPU版本,下载地址:PyTorch
//可以通过以下命令查看torch版本 python torch.__version__ quit() //卸载torch pip uninstall torch
Collecting package metadata (current_repodata.json): failed ProxyError: Conda cannot proceed due to an error in your proxy configuration. Check for typos and other configuration errors in any ‘.netrc’ file in your home directory, any environment variables ending in ‘_PROXY’, and any other system-wide proxy configuration settings.
关掉vpn