-
Notifications
You must be signed in to change notification settings - Fork 38
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
ERROR: Could not build wheels for faiss-cpu, which is required to install pyproject.toml-based projects in FreeBSD #80
Comments
The build requirement is explicitly stated in the README
|
Hi, Am facing same issue. what exactly needs to be sorted? |
I installed SWIG too. yet same issue. |
I had the same issue, I downgraded from python 3.12 to python 3.9 and it worked. I am using visual studio code through anaconda. |
This error just means that We can see what wheels are available by looking at this page on PyPI: https://pypi.org/project/faiss-cpu/#files As you can see, there are no wheels for BSD-likes except macOS, or for CPython 3.12+ (see #87). For most people (like @ririzu), the workaround for now is to downgrade to CPython 3.11 or below. Hope this helps! 👋 |
Thank you that has worked for me |
This works for Streamlit too |
Describe the bug
In FreeBSD pip install of faiss-cpu failed building wheel for faiss-cpu
To Reproduce
Collecting faiss-cpu
Using cached faiss-cpu-1.7.4.tar.gz (57 kB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
Building wheels for collected packages: faiss-cpu
Building wheel for faiss-cpu (pyproject.toml) ... error
error: subprocess-exited-with-error
× Building wheel for faiss-cpu (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [8 lines of output]
running bdist_wheel
running build
running build_py
running build_ext
building 'faiss._swigfaiss' extension
swigging faiss/faiss/python/swigfaiss.i to faiss/faiss/python/swigfaiss_wrap.cpp
swig -python -c++ -Doverride= -I/usr/local/include -Ifaiss -doxygen -module swigfaiss -o faiss/faiss/python/swigfaiss_wrap.cpp faiss/faiss/python/swigfaiss.i
error: command 'swig' failed: No such file or directory
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for faiss-cpu
Failed to build faiss-cpu
ERROR: Could not build wheels for faiss-cpu, which is required to install pyproject.toml-based projects
Desktop:
The text was updated successfully, but these errors were encountered: