castorini / pyserini

Pyserini is a Python toolkit for reproducible information retrieval research with sparse and dense representations.
http://pyserini.io/
Apache License 2.0
1.57k stars 349 forks source link

Install Failed building wheel for nmslib with pybind11-2.6.1 #1896

Closed GrigoriiTarasov closed 2 months ago

GrigoriiTarasov commented 2 months ago

pip install pyserini

In file included from /tmp/pip-install-ohp78vii/nmslib_517f02f3475141a7aed106ce6b7e9469/.eggs/pybind11-2.6.1-py3.11.egg/pybind11/include/pybind11/attr.h:13:0,

...

include/python3.11/pytypedefs.h:22:16: note: forward declaration of ‘PyFrameObject {aka struct _frame}’
       typedef struct _frame PyFrameObject;
                      ^
      error: command '/usr/bin/gcc' failed with exit code 1
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for nmslib
  Running setup.py clean for nmslib
Failed to build nmslib
ERROR: Could not build wheels for nmslib, which is required to install pyproject.toml-based project