Install ir_datasets

Hello everyone !

I need help, because I’m trying to install the “ir_datasets” library on anaconda, but I’ve tried everything, it still refuses me the installation. Here’s the error it usually gives me:
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for zlib-state
Running setup.py clean for zlib-state
Failed to build zlib-state
ERROR: Could not build wheels for zlib-state, which is required to install pyproject.toml-based projects

This seems to come from the zlib library and therefore from zlib-state, but when I try to install all this, it doesn’t work either …
Someone has already installed ir_datasets and would have a solution please!

Thanks in advance for your answers!

Hello,

Can you please share the commands you ran in an attempt to install the library?
Also, are you what OS are you running on? Linux, Windows or Mac-OS X?

can you plz suggest a solution. I am facing the same issue.
Mac-OS

Error is:
Building wheels for collected packages: zlib-state
Building wheel for zlib-state (pyproject.toml) … error
error: subprocess-exited-with-error

× Building wheel for zlib-state (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [21 lines of output]
running bdist_wheel
running build
running build_py
creating build
creating build/lib.macosx-10.9-x86_64-cpython-311
creating build/lib.macosx-10.9-x86_64-cpython-311/zlib_state
copying zlib_state/init.py → build/lib.macosx-10.9-x86_64-cpython-311/zlib_state
running egg_info
writing zlib_state.egg-info/PKG-INFO
writing dependency_links to zlib_state.egg-info/dependency_links.txt
writing top-level names to zlib_state.egg-info/top_level.txt
reading manifest file ‘zlib_state.egg-info/SOURCES.txt’
adding license file ‘LICENSE’
writing manifest file ‘zlib_state.egg-info/SOURCES.txt’
running build_ext
building ‘_zlib_state’ extension
creating build/temp.macosx-10.9-x86_64-cpython-311
creating build/temp.macosx-10.9-x86_64-cpython-311/src
clang -DNDEBUG -fwrapv -O2 -Wall -fPIC -O2 -isystem /Users/anaconda3/include -fPIC -O2 -isystem /Users/anaconda3/include -I/Users/anaconda3/include/python3.11 -c src/zlib_state.c -o build/temp.macosx-10.9-x86_64-cpython-311/src/zlib_state.o
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
error: command ‘/usr/bin/clang’ 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 zlib-state
Failed to build zlib-state
ERROR: Could not build wheels for zlib-state, which is required to install pyproject.toml-based projects

Hello :wave:, did you find any solution to this problem :confused: