找不到满足要求评估的版本

发布于 2025-02-08 03:55:38 字数 836 浏览 2 评论 0原文

在这里他们说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。

Here they say the Evaluate library has to be installed in a virtual environment. So I follow this guide and I create and activate a virtual environment doing:

python3 -m venv env

and

source env/bin/activate

Then when I try to install the evaluate package

python3 -m pip install requests

This happens:

(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

How can I solve this?

I'm using OpenSuse Leap 15.3 and my Python version is 3.6.15.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

梦情居士 2025-02-15 03:55:38

查看 evaliate 的左侧侧栏。底部附近是“编程语言”部分。它列出了Python 3.7至3.10版的可用性。

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

Look at the left side-bar on PyPi package page for evaluate. Near the bottom is the "Programming Language" section. It lists availability for Python version 3.7 to 3.10.

You will need to create a new environment with one of those versions of Python.

肤浅与狂妄 2025-02-15 03:55:38

就我而言,即使对于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

In my case I got this error even for 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.

... but after upgrading pip It was resolved:

python -m pip install --upgrade pip
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文