@@ -33,16 +33,17 @@ Installing the latest release
33
33
.. div :: install-instructions
34
34
35
35
.. tab-set ::
36
+ :class: tabs-os
36
37
37
- .. tab-item :: pip
38
- :class-label: tab-6
39
- :sync: packager-pip
38
+ .. tab-item :: Windows
39
+ :class-label: tab-4
40
40
41
41
.. tab-set ::
42
+ :class: tabs-package-manager
42
43
43
- .. tab-item :: Windows
44
- :class-label: tab-4
45
- :sync: os-windows
44
+ .. tab-item :: pip
45
+ :class-label: tab-6
46
+ :sync: package-manager-pip
46
47
47
48
Install the 64-bit version of Python 3, for instance from the
48
49
`official website <https://www.python.org/downloads/windows/ >`__.
@@ -66,9 +67,21 @@ Installing the latest release
66
67
python -m pip freeze # show all installed packages in the environment
67
68
python -c "import sklearn; sklearn.show_versions()"
68
69
69
- .. tab-item :: macOS
70
- :class-label: tab-4
71
- :sync: os-macos
70
+ .. tab-item :: conda
71
+ :class-label: tab-6
72
+ :sync: package-manager-conda
73
+
74
+ .. include :: ./install_instructions_conda.rst
75
+
76
+ .. tab-item :: MacOS
77
+ :class-label: tab-4
78
+
79
+ .. tab-set ::
80
+ :class: tabs-package-manager
81
+
82
+ .. tab-item :: pip
83
+ :class-label: tab-6
84
+ :sync: package-manager-pip
72
85
73
86
Install Python 3 using `homebrew <https://brew.sh/ >`_ (`brew install python `)
74
87
or by manually installing the package from the `official website
@@ -93,9 +106,21 @@ Installing the latest release
93
106
python -m pip freeze # show all installed packages in the environment
94
107
python -c "import sklearn; sklearn.show_versions()"
95
108
96
- .. tab-item :: Linux
97
- :class-label: tab-4
98
- :sync: os-linux
109
+ .. tab-item :: conda
110
+ :class-label: tab-6
111
+ :sync: package-manager-conda
112
+
113
+ .. include :: ./install_instructions_conda.rst
114
+
115
+ .. tab-item :: Linux
116
+ :class-label: tab-4
117
+
118
+ .. tab-set ::
119
+ :class: tabs-package-manager
120
+
121
+ .. tab-item :: pip
122
+ :class-label: tab-6
123
+ :sync: package-manager-pip
99
124
100
125
Python 3 is usually installed by default on most Linux distributions. To
101
126
check if you have it installed, try:
@@ -127,28 +152,12 @@ Installing the latest release
127
152
python3 -m pip freeze # show all installed packages in the environment
128
153
python3 -c "import sklearn; sklearn.show_versions()"
129
154
130
- .. tab-item :: conda
131
- :class-label: tab-6
132
- :sync: packager-conda
133
-
134
- Install conda using the `Anaconda or miniconda installers
135
- <https://docs.conda.io/projects/conda/en/latest/user-guide/install/> `__
136
- or the `miniforge installers
137
- <https://github.com/conda-forge/miniforge#miniforge> `__ (no administrator
138
- permission required for any of those). Then run:
139
-
140
- .. prompt :: bash
141
-
142
- conda create -n sklearn-env -c conda-forge scikit-learn
143
- conda activate sklearn-env
144
-
145
- In order to check your installation, you can use:
155
+ .. tab-item :: conda
156
+ :class-label: tab-6
157
+ :sync: package-manager-conda
146
158
147
- .. prompt :: bash
159
+ .. include :: ./install_instructions_conda.rst
148
160
149
- conda list scikit-learn # show scikit-learn version and location
150
- conda list # show all installed packages in the environment
151
- python -c "import sklearn; sklearn.show_versions()"
152
161
153
162
Using an isolated environment such as pip venv or conda makes it possible to
154
163
install a specific version of scikit-learn with pip or conda and its dependencies
0 commit comments