Python 安装faiss失败

报错

遇到ModuleNotFoundError: No module named 'faiss',使用下面语句安装失败。

python 复制代码
pip3 install faiss 

遇到

ERROR: Could not find a version that satisfies the requirement faiss (from versions: none)

ERROR: No matching distribution found for faiss

解决方法

python 复制代码
pip3  install faiss-cpu
python 复制代码
Collecting faiss-cpu
  Downloading faiss_cpu-1.8.0-cp312-cp312-macosx_10_14_x86_64.whl.metadata (3.6 kB)
Requirement already satisfied: numpy in /Users/rsun/miniconda3/lib/python3.12/site-packages (from faiss-cpu) (1.26.4)
Downloading faiss_cpu-1.8.0-cp312-cp312-macosx_10_14_x86_64.whl (7.4 MB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 7.4/7.4 MB 10.6 MB/s eta 0:00:00
Installing collected packages: faiss-cpu
Successfully installed faiss-cpu-1.8.0
相关推荐
Muyuan19987 天前
31.Cursor 初体验:用 AI Agent 给 PaperPilot 做一次最小工程重构
人工智能·python·重构·django·fastapi·faiss
Muyuan19988 天前
29.从 FAISS 到 Milvus:给我的 RAG Agent 项目加一层可替换的向量检索后端
fastapi·milvus·faiss
qq_2837200513 天前
LangChain+FAISS 向量数据库搭建轻量化 RAG 应用
数据库·langchain·faiss
qq_2837200521 天前
纯本地 RAG 系统部署详细教程:DeepSeek+BGE+FAISS
faiss
狐狐生风23 天前
LangChain 向量存储:Chroma、FAISS
人工智能·python·学习·langchain·faiss·agentai
Muyuan199823 天前
27.RAG 系统中的上下文充分性判断:从 Chunk 数量、FAISS 距离到 LLM Relevance Gate
python·django·pdf·fastapi·faiss
chushiyunen1 个月前
faiss向量检索库(并非向量数据库)
数据库·faiss
AI木马人1 个月前
8.【向量数据库深度对比】Milvus vs FAISS vs Pinecone(真实项目选型指南)
数据库·milvus·faiss
竹之却1 个月前
【Agent-阿程】AI先锋杯·14天征文挑战第14期-第6天-大模型RAG检索增强生成实战
人工智能·大模型·检索增强·faiss·rag
guslegend1 个月前
第9节:FAISS,HNSW还是BM25?如何选择最适合业务的向量检索引擎?如何选择最适合业务的向量检索引擎
人工智能·大模型·faiss·rag