pip install faiss-gpu
pip install faiss-cpu

若安装了GPU版本的Faiss,仍然报以下错误

  • module 'faiss' has no attribute 'StandardGpuResources'
  • module ‘faiss‘ has no attribute ‘GpuIndexFlatL2‘

这是因为 faiss库和faiss-gpu同时存在。你可以将faiss卸载,然后再次安装 faiss-gpu。

在使用faiss时,报以下错误:module ‘faiss‘ has no attribute ‘GpuIndexFlatL2‘,已经成功解决_tanpengjie的博客-CSDN博客

Logo

腾讯云面向开发者汇聚海量精品云计算使用和开发经验,营造开放的云计算技术生态圈。

更多推荐