【mteb[beir]】Fetching trec_eval from https://github.com/usnistgov/trec_eval/archive/v9.0.8.tar.gz.

今天在linux上安装mteb和beir的时候,出现了下面的错误:

 File "/root/miniconda3/envs/../lib/python3.9/urllib/request.py", line 1349, in do_open
          raise URLError(err)
      urllib.error.URLError: 
      Fetching trec_eval from https://github.com/usnistgov/trec_eval/archive/v9.0.8.tar.gz.
      [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

我发现我使用的是百度源来安装的,大概是百度源的问题。

解决方法

pip install mteb[beir] -i https://pypi.tuna.tsinghua.edu.cn/simple

换成清华源就行了,估计是百度源没有更新的缘故。

你可能感兴趣的:(mteb,beir)