【环境配置】python-beir2.0.0安装

438 阅读1分钟

问题:卡在安装pytrec_eval-0.5.tar.gz

ERROR: Failed building wheel for pytrec-eval
Running setup.py clean for pytrec-eval
Failed to build pytrec-eval
ERROR: Could not build wheels for pytrec-eval, which is required to install pyproject.toml-based projects

企业微信截图_17029512064870.png

解决

  1. Linux/服务器中

    python -m pip install --upgrade setuptools

    python -m pip install --upgrade pip

    pip install beir==2.0.0 -i https://pypi.tuna.tsinghua.edu.cn/simple

    成功安装!

  2. jupyter中

    手动安装pytrec_eval

    参考:

    1. github-cvangysel-pytrec_eval
    2. setup-script-exited-with-error-command-x86-64-linux-gnu-gcc-failed-with-exit