kyamagu / faiss-wheels

Unofficial faiss wheel builder
MIT License
275 stars 35 forks source link

Correctly add `packaging` as a dependency #101

Closed skasai5296 closed 3 months ago

skasai5296 commented 3 months ago

This is a follow-up for https://github.com/facebookresearch/faiss/pull/3191.

Issue

Importing faiss fails at runtime;

>>> import faiss
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File ".../site-packages/faiss/__init__.py", line 16, in <module>
    from .loader import *
  File ".../site-packages/faiss/loader.py", line 6, in <module>
    from packaging.version import Version
ModuleNotFoundError: No module named 'packaging'