提交 6427298a 编写于 作者: L loopyme

更新至0.21

上级 2968e61d
此差异已折叠。
...@@ -2,31 +2,37 @@ ...@@ -2,31 +2,37 @@
校验者: 校验者:
        [@小瑶](https://github.com/apachecn/scikit-learn-doc-zh)         [@小瑶](https://github.com/apachecn/scikit-learn-doc-zh)
[@Loopy](https://github.com/loopyme)
翻译者: 翻译者:
        [@片刻](https://github.com/apachecn/scikit-learn-doc-zh)         [@片刻](https://github.com/apachecn/scikit-learn-doc-zh)
Note > Note
>
如果你想为这个项目做出贡献,建议你 [安装最新的开发版本](developers/advanced_installation.html#install-bleeding-edge) . >如果你想为这个项目做出贡献,建议你 [安装最新的开发版本](https://scikit-learn.org/stable/developers/advanced_installation.html#install-bleeding-edge) .
## 安装最新版本 ## 安装最新版本
Scikit-learn 要求: Scikit-learn 要求:
* Python (>= 2.7 or >= 3.3), * Python (>= 3.5),
* NumPy (>= 1.8.2), * NumPy (>= 1.11.0),
* SciPy (>= 0.13.3). * SciPy (>= 0.17.0),
* joblib (>= 0.11).
Scikit-learn绘图功能(即,函数以“plot_”开头,需要Matplotlib(>= 1.5.1)。一些scikit-learn示例可能需要一个或多个额外依赖项:scikit-image(>= 0.12.3)、panda(>= 0.18.0)。
>**警告:** Scikit-learn 0.20是支持Python 2.7和Python 3.4的最后一个版本。Scikit-learn现在需要Python 3.5或更新版本。
如果你已经有一个安全的 numpy 和 scipy,安装 scikit-learn 最简单的方法是使用 `pip` 如果你已经有一个合适的 numpy 和 scipy版本,安装 scikit-learn 最简单的方法是使用 `pip`
```py ```sh
pip install -U scikit-learn pip install -U scikit-learn
``` ```
或者 `conda`: 或者 `conda`:
```py ```sh
conda install scikit-learn conda install scikit-learn
``` ```
...@@ -35,6 +41,10 @@ conda install scikit-learn ...@@ -35,6 +41,10 @@ conda install scikit-learn
如果您必须安装 scikit-learn 及其与 pip 的依赖关系,则可以将其安装为 `scikit-learn[alldeps]`。 最常见的用例是 `requirements.txt` 用作 PaaS 应用程序或 Docker 映像的自动构建过程的一部分的文件。此选项不适用于从命令行进行手动安装。 如果您必须安装 scikit-learn 及其与 pip 的依赖关系,则可以将其安装为 `scikit-learn[alldeps]`。 最常见的用例是 `requirements.txt` 用作 PaaS 应用程序或 Docker 映像的自动构建过程的一部分的文件。此选项不适用于从命令行进行手动安装。
> **注意** 在PyPy上安装时,需要注意PyPy3-v5.10+、Numpy 1.14.0+和scipy 1.1.0+。
有关更多发行版的安装说明,请参阅[其他发行版](https://scikit-learn.org/stable/other_distributions.html#install-by-distribution)。要从源代码编译开发版本,或者在体系结构中没有可用的发行版时构建包,请参阅[高级安装说明](https://scikit-learn.org/stable/developers/advanced_installation.html#advanced-installation)
## 第三方发行版 ## 第三方发行版
如果您尚未安装具有 numpy 和 scipy 的 python 安装,建议您通过软件包管理器或通过 python 软件包进行安装。 这些与 numpy, scipy, scikit-learn, matplotlib 和许多其他有用的科学和数据处理库。 如果您尚未安装具有 numpy 和 scipy 的 python 安装,建议您通过软件包管理器或通过 python 软件包进行安装。 这些与 numpy, scipy, scikit-learn, matplotlib 和许多其他有用的科学和数据处理库。
...@@ -53,14 +63,14 @@ Warning ...@@ -53,14 +63,14 @@ Warning
升级 `scikit-learn`: 升级 `scikit-learn`:
```py ```sh
conda update scikit-learn conda update scikit-learn
``` ```
卸载 `scikit-learn`: 卸载 `scikit-learn`:
```py ```sh
conda remove scikit-learn conda remove scikit-learn
``` ```
...@@ -72,5 +82,3 @@ pip 升级和卸载操作仅适用于通过 `pip install` 安装的软件包. ...@@ -72,5 +82,3 @@ pip 升级和卸载操作仅适用于通过 `pip install` 安装的软件包.
### WinPython 适用于 Windows ### WinPython 适用于 Windows
[WinPython](https://winpython.github.io/) 项目分布 scikit-learn 作为额外的插件。 [WinPython](https://winpython.github.io/) 项目分布 scikit-learn 作为额外的插件。
有关特定操作系统的安装说明或汇编出血边缘版本,请参阅 [Advanced installation instructions](developers/advanced_installation.html#advanced-installation).
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册