cvangysel / pytrec_eval

pytrec_eval is an Information Retrieval evaluation tool for Python, based on the popular trec_eval.
http://ilps.science.uva.nl/
MIT License
282 stars 32 forks source link

ERROR: Could not build wheels for pytrec-eval, which is required to install pyproject.toml-based projects #48

Open diyicheng opened 5 months ago

diyicheng commented 5 months ago

ERROR: Could not build wheels for pytrec-eval, which is required to install pyproject.toml-based projects

jeyendranbalakrishnan commented 4 months ago

Having the same problem.

JIAWENee commented 4 months ago

Encountered the same problem, how did you solve it?

JIAWENee commented 4 months ago

遇到同样的问题,你是怎么解决的?

Solved by command pip install pytrec-eval-terrier

KimSuYun0723 commented 3 months ago

After using that command, Im still having same problem..

cristianciacu1 commented 3 months ago

+1 same error here. I have a clean environment with python 3.8 and openjdk 11.

yuye-aws commented 3 months ago

After using that command, Im still having same problem..

Same here. I have tried multiple python versions from 3.9 through 3.11. Seems that we have the dependency missing for pyproject.toml

yuye-aws commented 3 months ago

If you are failing due to the following error, you can then try installing gcc first

error: command 'gcc' failed: No such file or directory
[end of output]

Also, you can try installing g++ if you come across the following error:

gcc: fatal error: cannot execute ‘cc1plus’: execvp: No such file or directory
compilation terminated.
error: command '/usr/bin/gcc' failed with exit code 1
[end of output]
Rilzob commented 1 week ago

I solve this problem by: pip install pycocotools