当前位置:网站首页>ModuleNotFoundError: No module named ‘_swigfaiss‘
ModuleNotFoundError: No module named ‘_swigfaiss‘
2022-06-30 09:36:00 【农民小飞侠】
今天运行rocketQA的时候发现没有安装faiss,于是用pip安装了faiss,运行的时候,出现了下面的错误:
......
File "/root/anaconda3/lib/python3.7/importlib/__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
ModuleNotFoundError: No module named '_swigfaiss'
解决方法
conda install faiss-cpu -c pytorch
用anaconda安装即可。
参考文献
[1].ImportError: No module named '_swigfaiss. https://github.com/facebookresearch/faiss/issues/821
边栏推荐
- log4j
- 基于Svelte3.x桌面端UI组件库Svelte UI
- 【新书推荐】Deno Web Development
- Dart development skills
- thrift简单使用
- Shenhe thermomagnetic: Super fusion dual active cluster solution for MES system
- Utlis memory pool object pool
- log4j
- Practice of super integration and transformation of core production business of public funds
- Quick completion guide for manipulator (4): reducer of key components of manipulator
猜你喜欢

C语言实现扫雷游戏,附详解及完整代码

机械臂速成小指南(五):末端执行器

机器学习笔记 九:预测模型优化(防止欠拟合和过拟合问题发生)

Network based dynamic routing protocol (OSPF)

Principle and implementation of small program hand-held bullet screen (uni APP)
![[new book recommendation] DeNO web development](/img/86/27906ae378e597cf64bb2d760a9dff.png)
[new book recommendation] DeNO web development

Add / delete query of topic

LVS load balancing

Installation and use

MySQL internal component structure
随机推荐
【新书推荐】Deno Web Development
Applying applet container technology to IOT ecological construction
Shell script multi loop experiment
7. development of mobile login function
Flutter的特别之处在哪里
Hospital integration platform super fusion infrastructure transformation scheme
Dart development skills
Principle and implementation of small program hand-held bullet screen (uni APP)
11. customize hooks
Read the difference and connection between hyperfusion and private cloud
Thrift easy to use
Theme Studio
JVM tuning tool introduction and constant pool explanation
浏览器复制的网址粘贴到文档是超链接
CRF (conditional random field) learning summary
Critical applications and hyper converged infrastructure: the time has come
input限制输入
Flutter 中的 ValueNotifier 和 ValueListenableBuilder
Installing Oracle database process in windows2007 on VM
Appium自动化测试基础 — 12.APPium自动化测试框架介绍