scikit-learn 未升级

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

我正在尝试升级我的 scikit-learn 包。我当前的版本是1.0.2。我按照此处的安装说明进行操作:https://scikit-learn.org/stable/install.html#install-official-release

我正在尝试通过以下方式升级:

pip install -U scikit-learn

这会在终端中显示以下消息:

(nec37) xyz@VUSELNX-51ZNMR2:~/PycharmProjects/Xyz(master)$ pip install -U scikit-learn
Requirement already satisfied: scikit-learn in /home/miniconda3/envs/nec37/lib/python3.7/site-packages (1.0.2)
Requirement already satisfied: threadpoolctl>=2.0.0 in /home/miniconda3/envs/nec37/lib/python3.7/site-packages (from scikit-learn) (3.1.0)
Requirement already satisfied: joblib>=0.11 in /home/miniconda3/envs/nec37/lib/python3.7/site-packages (from scikit-learn) (1.3.2)
Requirement already satisfied: numpy>=1.14.6 in /home/miniconda3/envs/nec37/lib/python3.7/site-packages (from scikit-learn) (1.21.6)
Requirement already satisfied: scipy>=1.1.0 in /home/miniconda3/envs/nec37/lib/python3.7/site-packages (from scikit-learn) (1.7.3)

当我也使用时也会发生同样的情况:

pip3 install -U scikit-learn

版本仍然保持不变:

(nec37) xyz@VUSELNX-51ZNMR2:~/PycharmProjects/xyz(master)$ python -c "import sklearn;
 print(sklearn.__version__)"
1.0.2

如何升级?

python scikit-learn upgrade
1个回答
0
投票

您可能想尝试一次这个语句,

pip install --upgrade scikit-learn

这应该有效。

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