简体   繁体   English

如何安装以前版本的 SciKit?

[英]How do I install previous version of SciKit?

Right now I am having an error display:现在我有一个错误显示:

D:\Python\lib\site-packages\sklearn\base.py:334: UserWarning: Trying to unpickle estimator ExtraTreeClassifier from version 0.22.2.post1 when using version 0.23.1. D:\Python\lib\site-packages\sklearn\base.py:334: UserWarning: Trying to unpickle estimator ExtraTreeClassifier from version 0.22.2.post1 when using version 0.23.1. This might lead to breaking code or invalid results.这可能会导致破坏代码或无效结果。 Use at your own risk.使用风险自负。

Because I am using 0.23.1 of Scikit.因为我使用的是 0.23.1 的 Scikit。 I've checked on their website and found the version 0.22.2 but I can't figure out how to install it?我在他们的网站上检查过,找到了 0.22.2 版本,但我不知道如何安装它? I even see the GitHub could I download the files from there?我什至看到 GitHub 我可以从那里下载文件吗? Not sure how that works.不知道它是如何工作的。

This is the link for 0.22.2 https://scikit-learn.org/0.22/这是 0.22.2 https://scikit-learn.org/0.22/的链接

Does anyone have a suggestion?有人有建议吗? Thanks谢谢

Please type:请输入:

pip install scikit-learn==0.22.2

in your terminal.在您的终端中。 I just tested it and it works.我刚刚测试过它并且它有效。 :) :)

First uninstall the currently installed scikit-learn with the command: pip uninstall scikit-learn首先卸载当前安装的 scikit-learn 使用命令: pip uninstall scikit-learn

And then install the 0.22.2 version with the command: pip install scikit-learn==0.22.2然后用命令安装0.22.2版本: pip install scikit-learn==0.22.2

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM