Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

求助.找不到_swigfaiss #257

Closed
s084088 opened this issue May 10, 2023 · 3 comments
Closed

求助.找不到_swigfaiss #257

s084088 opened this issue May 10, 2023 · 3 comments

Comments

@s084088
Copy link

s084088 commented May 10, 2023

PS E:\project\voice\Retrieval-based-Voice-Conversion-WebUI> python infer-web.py
Traceback (most recent call last):
File "E:\project\voice\Retrieval-based-Voice-Conversion-WebUI\infer-web.py", line 7, in
import faiss
File "C:\Users\Nemo\AppData\Roaming\Python\Python39\site-packages\faiss_init_.py", line 51, in
from .loader import *
File "C:\Users\Nemo\AppData\Roaming\Python\Python39\site-packages\faiss\loader.py", line 65, in
from .swigfaiss import *
File "C:\Users\Nemo\AppData\Roaming\Python\Python39\site-packages\faiss\swigfaiss.py", line 13, in
from . import _swigfaiss
ImportError: DLL load failed while importing _swigfaiss: 找不到指定的模块。

@s084088
Copy link
Author

s084088 commented May 10, 2023

如果直接运行 go-web.bat会出现以下错误

E:\project\voice\RVC-beta>runtime\python.exe infer-web.py --pycmd runtime\python.exe --port 7897
Traceback (most recent call last):
File "E:\project\voice\RVC-beta\infer-web.py", line 2, in
import threading, pdb, librosa
File "C:\Users\Nemo\AppData\Roaming\Python\Python39\site-packages\librosa_init_.py", line 209, in
from . import core
File "C:\Users\Nemo\AppData\Roaming\Python\Python39\site-packages\librosa\core_init_.py", line 5, in
from .convert import * # pylint: disable=wildcard-import
File "C:\Users\Nemo\AppData\Roaming\Python\Python39\site-packages\librosa\core\convert.py", line 7, in
from . import notation
File "C:\Users\Nemo\AppData\Roaming\Python\Python39\site-packages\librosa\core\notation.py", line 8, in
from ..util.exceptions import ParameterError
File "C:\Users\Nemo\AppData\Roaming\Python\Python39\site-packages\librosa\util_init_.py", line 78, in
from .files import * # pylint: disable=wildcard-import
File "C:\Users\Nemo\AppData\Roaming\Python\Python39\site-packages\librosa\util\files.py", line 11, in
import pooch
File "C:\Users\Nemo\AppData\Roaming\Python\Python39\site-packages\pooch_init_.py", line 10, in
from .core import Pooch, create, retrieve
File "C:\Users\Nemo\AppData\Roaming\Python\Python39\site-packages\pooch\core.py", line 21, in
from .utils import (
File "C:\Users\Nemo\AppData\Roaming\Python\Python39\site-packages\pooch\utils.py", line 19, in
import platformdirs
ModuleNotFoundError: No module named 'platformdirs'

@Tps-F
Copy link
Member

Tps-F commented May 10, 2023

kyamagu/faiss-wheels#38
Try this one

@s084088
Copy link
Author

s084088 commented May 10, 2023

谢谢
使用
pip uninstall faiss-cpu
conda uninstall faiss
conda install faiss-cpu -c pytorch

再重新安装环境问题解决了

@s084088 s084088 closed this as completed May 10, 2023
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants