kyamagu / faiss-wheels

Unofficial faiss wheel builder
MIT License
284 stars 37 forks source link

inconsistent name: expected 'faiss-gpu', but metadata has 'faiss-cpu' #77

Closed peterchanws closed 7 months ago

peterchanws commented 1 year ago

Describe the bug Requested faiss-cpu from https://files.pythonhosted.org/packages/7d/00/b3aaad408a44e4f5d87ebfcd75d0b14eeaed9fe9bc7a9f5e185ff1d503d6/faiss-gpu-1.6.4.post2.tar.gz has inconsistent name: expected 'faiss-gpu', but metadata has 'faiss-cpu'

To Reproduce Describe the steps to reproduce the behavior: pip install faiss-gpu

Desktop (please complete the following information):

lelapin123 commented 1 year ago

Me too with python 3.10.11 with conda and windows 10

neeti865 commented 1 year ago

I am also facing the same issue. Anyone found a fix for this?

johnurbanik commented 10 months ago

Also seeing this on Ubuntu 20.04.6 LTS with Python 3.11.6

chris-aeviator commented 10 months ago

python 3.11 debian affected, all projects relying on faiss fail to install

  WARNING: Generating metadata for package faiss-gpu produced metadata for project name faiss-cpu. Fix your #egg=faiss-gpu fragments.
Discarding https://files.pythonhosted.org/packages/7d/00/b3aaad408a44e4f5d87ebfcd75d0b14eeaed9fe9bc7a9f5e185ff1d503d6/faiss-gpu-1.6.4.post2.tar.gz (from https://pypi.org/simple/faiss-gpu/): Requested faiss-cpu from https://files.pythonhosted.org/packages/7d/00/b3aaad408a44e4f5d87ebfcd75d0b14eeaed9fe9bc7a9f5e185ff1d503d6/faiss-gpu-1.6.4.post2.tar.gz has inconsistent name: expected 'faiss-gpu', but metadata has 'faiss-cpu'
  Using cached faiss-gpu-1.6.4.tar.gz (3.4 kB)
  Preparing metadata (setup.py) ... error
  error: subprocess-exited-with-error

  × python setup.py egg_info did not run successfully.
  │ exit code: 1
  ╰─> [7 lines of output]
      running egg_info
      creating /tmp/pip-pip-egg-info-qpvwpcz2/faiss_cpu.egg-info
      writing /tmp/pip-pip-egg-info-qpvwpcz2/faiss_cpu.egg-info/PKG-INFO
      writing dependency_links to /tmp/pip-pip-egg-info-qpvwpcz2/faiss_cpu.egg-info/dependency_links.txt
      writing top-level names to /tmp/pip-pip-egg-info-qpvwpcz2/faiss_cpu.egg-info/top_level.txt
      writing manifest file '/tmp/pip-pip-egg-info-qpvwpcz2/faiss_cpu.egg-info/SOURCES.txt'
      error: package directory '/tmp/pip-install-ugppery7/faiss-gpu_c6cb8eb796ff4c5492a3ebd3edb2885b/faiss/faiss/python' does not exist
      [end of output]
kyamagu commented 7 months ago

faiss-gpu is not supported anymore, and the source packages are removed from the PyPI. Please use the faiss-cpu source package to support GPUs.

calypset commented 6 months ago

If faiss-gpu is not supported anymore, is there any way to install faiss-cpu with cuda gpu support on windows? (sorry to open again with this question)

kyamagu commented 6 months ago

@calypset Check the official instruction. There has never been windows GPU support in the PyPI package