asg017 / sqlite-vss

A SQLite extension for efficient vector search, based on Faiss!
MIT License
1.59k stars 58 forks source link

Unable to install Python binding on M1 Monterey macOS #83

Closed tmokmss closed 11 months ago

tmokmss commented 11 months ago

Hi, when I try to install the sqlite-vss package on my macOS (M1 Monterey) machine, I get an error:

$ pip install sqlite-vss
ERROR: Could not find a version that satisfies the requirement sqlite-vss (from versions: none)
ERROR: No matching distribution found for sqlite-vss

The problem is that the name of wheel for arm Mac is sqlite_vss-0.1.1-py3-none-macosx_13_0_arm64.whl, which cannot be installed on Monterey(=v12). When I downloaded the wheel and rename it, it was installed successfully.

$ mv sqlite_vss-0.1.1-py3-none-macosx_13_0_arm64.whl sqlite_vss-0.1.1-py3-none-macosx_12_0_arm64.whl
$ pip install sqlite_vss-0.1.1-py3-none-macosx_12_0_arm64.whl
# -> success

Is there any reason to set the least macOS version to 13 for the arm64 build? If not, I guess the wheel file name should be fixed.

asg017 commented 11 months ago

I will rename the wheels to use py3-none-macosx_12_0_arm64.whl in the next release, thanks for letting me know! I just want to test and verify that it won't break those on Ventura before publishing

tmokmss commented 11 months ago

@asg017 I think 11_0 would be the best, as Big Sur(11) is the first version that supports M1 Macs (ref). Thanks!

asg017 commented 11 months ago

@tmokmss just published 0.1.2-alpha.2 with a new wheel name - can you pip install sqlite-vss==0.1.2a2 to see if it works for you?

The wheel is sqlite_vss-0.1.2a2-py3-none-macosx_11_0_arm64.whl

tmokmss commented 11 months ago

@asg017 I confirmed now I can install and use the package successfully. Thanks again!