在miniconda3中安装评估库时出错

问题描述 投票:0回答:1

我刚刚按照官方文档的说明在我的计算机(ubuntu 22.04)上安装了新的 miniconda3。

我的目标是通过一些语言模型与拥抱脸的生态系统合作。但在安装 evaluate 库时出现错误。

在我的 shell 中,我执行

conda install evaluate
并收到以下错误:

Channels:
 - defaults
Platform: linux-64
Collecting package metadata (repodata.json): done
Solving environment: - warning  libmamba Added empty dependency for problem type SOLVER_RULE_UPDATE
failed

LibMambaUnsatisfiableError: Encountered problems while solving:
  - package evaluate-0.3.0-py310h06a4308_0 requires python >=3.10,<3.11.0a0, but none of the providers can be installed

Could not solve for environment specs
The following packages are incompatible
├─ evaluate is installable with the potential options
│  ├─ evaluate [0.3.0|0.4.0] would require
│  │  └─ python >=3.10,<3.11.0a0 , which can be installed;
│  ├─ evaluate 0.3.0 would require
│  │  └─ python >=3.7,<3.8.0a0 , which can be installed;
│  ├─ evaluate [0.3.0|0.4.0] would require
│  │  └─ python >=3.8,<3.9.0a0 , which can be installed;
│  ├─ evaluate [0.3.0|0.4.0] would require
│  │  └─ python >=3.9,<3.10.0a0 , which can be installed;
│  └─ evaluate 0.4.0 would require
│     └─ python >=3.11,<3.12.0a0 , which can be installed;
└─ pin-1 is not installable because it requires
   └─ python 3.12.* , which conflicts with any installable versions previously reported.

知道该怎么做吗?

python anaconda conda huggingface huggingface-evaluate
1个回答
0
投票

错误明确指出

package evaluate-0.3.0-py310h06a4308_0 requires 
python >=3.10,<3.11.0a0, but none of the providers can be installed

创建一个

venv
并从那里开始您的项目

conda create -n huggingface-env python=3.10

然后

conda activate huggingface-env

然后

pip install evaluate

接下来是其余的库

© www.soinside.com 2019 - 2024. All rights reserved.