当前位置:网站首页>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
边栏推荐
猜你喜欢

oracle跨数据库复制数据表-dblink

How to build an all-in-one database cloud machine that meets the needs of information innovation?

Machine learning note 9: prediction model optimization (to prevent under fitting and over fitting problems)

Object detection yolov5 open source project debugging

9.缓存优化

CRF (conditional random field) learning summary

Xlnet (generalized autorefressive trainingfor language understanding) paper notes

Appium automation test foundation - 12 Introduction to appium automated testing framework

IDC released the report on China's software defined storage and hyper convergence market in the fourth quarter of 2020, and smartx hyper convergence software ranked first in the financial industry

Quick completion guide for manipulator (4): reducer of key components of manipulator
随机推荐
Installation and use
1. Basic configuration
[JVM] brief introduction to CMS
MySQL explain
Enterprise data center "cloud" transformation solution
Plan the IT technology route for the new year? Let's learn about Gartner infrastructure hype cycle
Practice of super integration and transformation of core production business of public funds
近期学习遇到的比较问题
力扣 428. 序列化和反序列化 N 叉树 DFS
utils session&rpc
磁悬浮3D灯
Configuring MySQL for error reporting
[new book recommendation] mongodb performance tuning
[new book recommendation] DeNO web development
二极管如何工作?
Installing Oracle database process in windows2007 on VM
Upgrade log4j2 to 2.17.1 stepped pit
Techtarget: Interpretation of the basic concept of super fusion cloud
C语言实现扫雷游戏,附详解及完整代码
鼠标右键打开cmd(命令行)