-
Notifications
You must be signed in to change notification settings - Fork 655
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
pip installs for wrong architecture and does not build from source #458
Comments
That seems like a compiler misconfiguration. I guess we should create binary wheels like manylinux, so it would not matter if user's environment is set correctly. If someone can help with instructions on creating those, that would be highly appreciated. |
I was eventually able to install a working version with
This finally triggered the build step. However, if hnswlib is a dependency of some other library, then pip will install mismatched binaries. |
You can use a GitHub Actions workflow to automatically create wheels and publish them to PyPI using cibuildwheel: They have an example workflow here: https://github.com/pypa/cibuildwheel/blob/main/examples/github-deploy.yml |
@jllllll thanks, will take a look! |
@clstaudt This does not work for me on mac M1. Python: 3.9 / 3.10 / 3.11, even install from source. |
This worked for me on a mac M1: zylon-ai/private-gpt#389 (comment) # 1. Uninstall hnswlib
> pip uninstall hnswlib
# 2. Clear the pip cache
> pip cache purge
# 3. Reinstall with the arm64 architecture
> ARCHFLAGS="-arch arm64" pip install hnswlib |
Here M1 , do not work:
|
Installation, trying to force build from source:
Test:
The text was updated successfully, but these errors were encountered: