当前位置:网站首页>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
边栏推荐
- Brève description du collecteur d'ordures G1
- [JVM] G1 garbage collector
- Difference between bow and cbow
- 11. customize hooks
- Description of event flow
- Good partner for cloud skill improvement, senior brother cloud of Amazon officially opened today
- Ocx control can be called by IE on some computers, but can not be called by IE on some computers
- Applying applet container technology to IOT ecological construction
- NFS shared services
- LVS load balancing
猜你喜欢

【JVM】G1垃圾回收器简述

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

Appium automation test foundation - ADB shell command

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

【JVM】CMS简述

Oracle cross database replication data table dblink

Flume learning 1

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

Xlnet (generalized autorefressive trainingfor language understanding) paper notes

Installation and use
随机推荐
Regular expression Basics
thrift简单使用
直播带货源码开发中,如何降低直播中的延迟?
Thrift easy to use
JUL简介
事件委托的使用与说明》
Oracle cross database replication data table dblink
Based on svelte3 X desktop UI component library svelte UI
[JVM] G1 garbage collector
Utlis memory pool object pool
抽象类和接口
Theme Studio(主题工作室)
JVM notes (III): analysis of JVM object creation and memory allocation mechanism
Forrester senior analyst: five important trends in the development of the hyper convergence market
utils session&rpc
Shell script multi loop experiment
Appium自动化测试基础 — 12.APPium自动化测试框架介绍
About Jul
[Ubuntu redis installation]
MCU firmware packaging Script Software