Skip to content

Commit 7505ed5

Browse files
lestevejeremiedbb
andauthored
DOC Fix Python min version in advanced installation docs (#31081)
Co-authored-by: Jérémie du Boisberranger <jeremie@probabl.ai>
1 parent ecef0bc commit 7505ed5

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

doc/developers/advanced_installation.rst

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@
33

44
.. include:: ../min_dependency_substitutions.rst
55

6+
..
7+
TODO Add |PythonMinVersion| to min_dependency_substitutions.rst one day.
8+
Probably would need to change a bit sklearn/_min_dependencies.py since Python is not really a package ...
9+
.. |PythonMinVersion| replace:: 3.10
10+
611
==================================================
712
Installing the development version of scikit-learn
813
==================================================
@@ -58,7 +63,7 @@ feature, code or documentation improvement).
5863
If you plan on submitting a pull-request, you should clone from your fork
5964
instead.
6065

61-
#. Install a recent version of Python (3.9 or later at the time of writing) for
66+
#. Install a recent version of Python (|PythonMinVersion| or later) for
6267
instance using conda-forge_. Conda-forge provides a conda-based distribution of
6368
Python and the most popular scientific libraries.
6469

@@ -78,7 +83,7 @@ feature, code or documentation improvement).
7883
conda activate sklearn-env
7984

8085
#. **Alternative to conda:** You can use alternative installations of Python
81-
provided they are recent enough (3.9 or higher at the time of writing).
86+
provided they are recent enough (|PythonMinVersion| or higher).
8287
Here is an example of how to create a build environment for a Linux system's
8388
Python. Build dependencies are installed with `pip` in a dedicated virtualenv_
8489
to avoid disrupting other Python programs installed on the system:
@@ -134,7 +139,7 @@ Runtime dependencies
134139
Scikit-learn requires the following dependencies both at build time and at
135140
runtime:
136141

137-
- Python (>= 3.8),
142+
- Python (>= |PythonMinVersion|),
138143
- NumPy (>= |NumpyMinVersion|),
139144
- SciPy (>= |ScipyMinVersion|),
140145
- Joblib (>= |JoblibMinVersion|),

0 commit comments

Comments
 (0)