找不到满足需求计算的版本



这里他们说Evaluate库必须安装在虚拟环境中。所以我按照下面的指导创建并激活一个虚拟环境:

python3 -m venv env

source env/bin/activate

然后当我尝试安装评估包

python3 -m pip install requests

发生这种情况:

(env) bscuser@localhost:~> python3 -m pip install evaluate
ERROR: Could not find a version that satisfies the requirement evaluate (from versions: none)
ERROR: No matching distribution found for evaluate

我该如何解决这个问题?

我使用的是OpenSuse Leap 15.3, Python版本是3.6.15。

查看evaluate的PyPi包页面的左侧栏。接近底部的是"编程语言"。部分。它列出了Python 3.7到3.10版本的可用性。

您需要使用其中一个版本的Python创建一个新环境。

在我的情况下,我得到了这个错误,即使是python 3.7:

user@dot:~/PycharmProjects/tsg$ python --version
Python 3.7.16
user@dot:~/PycharmProjects/tsg$ pip3 install evaluate
Defaulting to user installation because normal site-packages is not writeable
ERROR: Could not find a version that satisfies the requirement evaluate
ERROR: No matching distribution found for evaluate
WARNING: You are using pip version 21.0.1; however, version 21.3.1 is available.
You should consider upgrading via the '/usr/bin/python3 -m pip install --upgrade pip' command.

…但升级pip后,解决:

python -m pip install --upgrade pip

最新更新