一、使用conda安装

  1. 安装conda(略)
  2. 安装faiss
CPU版本:conda install -c pytorch faiss-cpu
GPU版本:conda install faiss-gpu cudatoolkit=11 -c pytorch

我下载的python版本是3.9的,导致无法安装faiss,报错如下

Collecting package metadata (current_repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
Solving environment: failed with repodata from current_repodata.json, will retry with next repodata source.
Collecting package metadata (repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
Solving environment: \
Found conflicts! Looking for incompatible packages.
This can take several minutes.  Press CTRL-C to abort.
failed                                                                                                                                                                                 UnsatisfiableError: The following specifications were found
to be incompatible with the existing python installation in your environment:Specifications:- faiss-gpu -> python[version='>=2.7,<2.8.0a0|>=3.6,<3.7.0a0|>=3.8,<3.9.0a0|>=3.7,<3.8.0a0|>=3.5,<3.6.0a0']Your python: python=3.9If python is on the left-most side of the chain, that's the version you've asked for.
When python appears to the right, that indicates that the thing on the left is somehow
not available for the python version you are constrained to. Note that conda will not
change your python version to a different minor version unless you explicitly specify
that.

需要对python进行降级

conda install python=3.8

Openblas在线安装

sudo apt-get install libopenblas-dev 

Faiss安装问题解决相关推荐

  1. pdo_mysql 必须 ×未安装_php pdo_mysql未安装问题解决方法_PHP教程 | 蒲公英网

    摘要 php pdo_mysql未安装问题解决方法.未安装pdo_mysql使用时会提示pdo_mysql 必须支持 请检查 pdo_mysql 模块是否正确加载了,安装方法很简单下面我来看看. 解决 ...

  2. SharePoint 2013必备组件离线包安装:AppFabric无法安装问题解决

    SharePoint 2013必备组件离线包安装:AppFabric无法安装问题解决 参考文章: (1)SharePoint 2013必备组件离线包安装:AppFabric无法安装问题解决 (2)ht ...

  3. PyTorch安装问题解决

    PyTorch安装问题解决 参考文章: (1)PyTorch安装问题解决 (2)https://www.cnblogs.com/jourluohua/p/9735846.html (3)https:/ ...

  4. LabVIEW之安装队列工具包AMC安装问题解决

    LabVIEW之安装队列工具包AMC安装问题解决 参考文章: (1)LabVIEW之安装队列工具包AMC安装问题解决 (2)https://www.cnblogs.com/qiufenghui/p/3 ...

  5. metrics-server 安装问题解决

    metrics-server 安装问题解决 参考文章: (1)metrics-server 安装问题解决 (2)https://www.cnblogs.com/nineep/p/12023992.ht ...

  6. KMSpico无法安装问题解决

    KMSpico无法安装问题解决 KMSpico可以用于破解office系列(word,excel,slides,visio)等.但是我在安装这个软件的过程中碰到了这样一个问题: 我试了很多办法都没有用 ...

  7. PyMySQL安装问题解决办法-UnicodeDecodeError:gbk codec cannot decode byte 0xaf

    PyMySQL安装问题解决办法-UnicodeDecodeError:gbk codec cannot decode byte 0xaf 依据报错信息,找到site.py 对应文件,分析问题所在行,可 ...

  8. Arduino uno 驱动安装问题解决(win10)

    Arduino uno 驱动安装问题解决(win10) 今天安装uno的驱动怎么也安装不上,从网上找了各种帖子,终于解决了问题 首先说一下遇到的问题: 1.插入uno板在arduino中无法设置端口, ...

  9. SQL Server研习录(24)——Windows Server 2012 R2安装数据库时提示KB2919355安装问题解决

    SQL Server研习录(24)--Windows Server 2012 R2安装数据库时提示KB2919355安装问题解决 版权声明 一.问题描述 二.解决办法 版权声明 本文原创作者:清风不渡 ...

最新文章

  1. 文本分类的基本思想和朴素贝叶斯算法原理
  2. 《Linux菜鸟入门》认识linux系统
  3. azure container 的命名规则
  4. Java Spring DI之旅
  5. sql 多表多行模糊查询_从零开始学习SQL(五)多表查询
  6. CUBA 7的新功能
  7. 台式电脑键盘字母乱了_键盘侠的育儿经利用键盘引导学龄前儿童正确使用电脑、学习英文字母和拼音...
  8. C++常用概念——while循环时终止输入(Ctrl+Z,Ctrl+C,Ctrl+D(EOF))
  9. PHP cookie和session的分析
  10. 人脸数据集——亚洲人脸数据集
  11. 四两拨千斤的工作小工具分享
  12. java 获取est时间_javascript-使用Java脚本将时区从EST转换为IST
  13. Android高效率编码-第三方SDK详解系列(一)——百度地图,绘制,覆盖物,导航,定位,细腻分解!...
  14. python画国际象棋_python使用turtle绘制国际象棋棋盘
  15. 【luogu CF1009F】Dominant Indices(长链剖分优化DP)
  16. 【导航链接】计算机科研学习
  17. NahimicSvc64.exe逻辑炸弹导致CPU直飚99%
  18. Python模块、包与面向对象综合案例
  19. linux自定义显示带颜色的字
  20. SystemUI 下拉通知栏快捷键加载流程

热门文章

  1. mysql的时间日期函数
  2. 用java代码写个蛋糕_【技术蛋糕】Java编程中写出好代码的建议
  3. ABP开发框架前后端开发系列——框架的总体介绍
  4. 注册+登录+列表+详情+自定义加减+购物车
  5. 2020-08-21网易严选感谢信(HR面挂)
  6. 有哪些中文海报让你拍案叫绝?
  7. 写一个Vue的双向数据绑定
  8. java计算机毕业设计期刊在线投稿系统源码+程序+lw文档+mysql数据库
  9. NVIDIA 控制面板显示“拒绝访问,无法应用选定的设置”怎么办
  10. Java取对象中年龄最大的那个_Java8怎么从流中获取最大值、最小值