kyamagu / faiss-wheels

Unofficial faiss wheel builder
MIT License
298 stars 38 forks source link

Can't install faiss-cpu-noavx2 on colab #71

Closed Butanium closed 1 year ago

Butanium commented 1 year ago

Describe the bug pip install faiss-cpu-noavx2 fails in a colab env:

!pip install faiss-cpu-noavx2
Looking in indexes: https://pypi.org/simple, https://us-python.pkg.dev/colab-wheels/public/simple/
Collecting faiss-cpu-noavx2
  Using cached faiss-cpu-noavx2-1.6.3.tar.gz (16 kB)
  Preparing metadata (setup.py) ... done
Building wheels for collected packages: faiss-cpu-noavx2
  error: subprocess-exited-with-error

  × python setup.py bdist_wheel did not run successfully.
  │ exit code: 1
  ╰─> See above for output.

  note: This error originates from a subprocess, and is likely not a problem with pip.
  Building wheel for faiss-cpu-noavx2 (setup.py) ... error
  ERROR: Failed building wheel for faiss-cpu-noavx2
  Running setup.py clean for faiss-cpu-noavx2
Failed to build faiss-cpu-noavx2

To Reproduce Describe the steps to reproduce the behavior: just create a colab and execute the command pip install faiss-cpu-noavx2

Desktop (please complete the following information):

DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=20.04
DISTRIB_CODENAME=focal
DISTRIB_DESCRIPTION="Ubuntu 20.04.5 LTS"
NAME="Ubuntu"
VERSION="20.04.5 LTS (Focal Fossa)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 20.04.5 LTS"
VERSION_ID="20.04"
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
VERSION_CODENAME=focal
UBUNTU_CODENAME=focal

Python version: 3.9.16

Additional context I was trying to install https://pypi.org/project/image-embeddings/ when this error occured Here is a colab if you want to reproduce: https://colab.research.google.com/drive/1yU5lyoRZ3xJbwf_UHldQtfWc-Tlaca3n?usp=sharing

kyamagu commented 1 year ago

Contact @rom1504. I am not the maintainer of faiss-cpu-noavx2 https://pypi.org/user/rom1504/

rom1504 commented 1 year ago

@Butanium can you try to switch to faiss-cpu in image_embeddings dependencies?

Butanium commented 1 year ago

it works !