Skip to content
Snippets Groups Projects
Commit 2c4b43c2 authored by Andreas Mueller's avatar Andreas Mueller Committed by Loic Esteve
Browse files

change installation description to not discourage people from installing scipy...

change installation description to not discourage people from installing scipy or numpy with pip. (#7313)
parent 22e43054
Branches
Tags
No related merge requests found
...@@ -28,22 +28,21 @@ or ``conda``:: ...@@ -28,22 +28,21 @@ or ``conda``::
conda install scikit-learn conda install scikit-learn
**We don't recommend installing scipy or numpy using pip on Linux**, If you have not installed NumPy or SciPy yet, you can also install these using
as this will involve a lengthy build process with many dependencies. conda or pip. When using pip, please ensure that *binary wheels* are used,
Without careful configuration, building numpy yourself is likely to lead to an and NumPy and SciPy are not recompiled from source, which can happen when using
installation that is much slower than it should be. particular configurations of operating system and hardware (such as Linux on
If you are using Linux, consider using your package manager to install a Raspberry Pi).
scikit-learn. It is usually the easiest way, but might not provide the newest Building numpy and scipy from source can be complex (especially on Windows) and
version. requires careful configuration to ensure that they link against an optimized
If you haven't already installed numpy and scipy and can't install them via implementation of linear algebra routines.
your operating system, we recommended using a third-party distribution. Instead, use a third-party distribution as described below.
If you must install scikit-learn and its dependencies with pip, you can install If you must install scikit-learn and its dependencies with pip, you can install
it as ``scikit-learn[alldeps]``. We strongly recommend against doing this it as ``scikit-learn[alldeps]``. The most common use case for this is in a
unless you are familiar with how to correctly build numpy and scipy. The most ``requirements.txt`` file used as part of an automated build process for a PaaS
common use case for this is in a ``requirements.txt`` file used as part of an application or a Docker image. This option is not intended for manual
automated build process for a PaaS application or a Docker image. This option installation from the command line.
is not intended for manual installation from the command line.
Third-party Distributions Third-party Distributions
========================== ==========================
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment