faiss-wheels icon indicating copy to clipboard operation
faiss-wheels copied to clipboard

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

Open peterchanws opened this issue 1 year ago • 4 comments

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):

  • OS: macOS 12.6.6
  • Architecture: x86_64
  • Python: 3.11.3

peterchanws avatar May 25 '23 16:05 peterchanws

Me too with python 3.10.11 with conda and windows 10

lelapin123 avatar May 26 '23 23:05 lelapin123

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

neeti865 avatar Sep 16 '23 15:09 neeti865

Also seeing this on Ubuntu 20.04.6 LTS with Python 3.11.6

johnurbanik avatar Nov 19 '23 17:11 johnurbanik

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]
```

chris-aeviator avatar Dec 04 '23 10:12 chris-aeviator

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.

kyamagu avatar Mar 05 '24 03:03 kyamagu

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)

calypset avatar Mar 13 '24 01:03 calypset

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

kyamagu avatar Mar 13 '24 01:03 kyamagu