@@ -71,32 +71,32 @@ Then run:
71
71
72
72
<div class =" highlight" >
73
73
<pre class =" sk-expandable" data-packager =" pip" data-os =" linux" data-venv =" no"
74
- ><span class = " prompt1 " >pip3 install -U scikit-learn</span ></pre >
75
-
74
+ ><span >pip3 install -U scikit-learn</span ></pre >
75
+
76
76
<pre class =" sk-expandable" data-packager =" pip" data-os =" windows" data-venv =" no"
77
- ><span class = " prompt1 " >pip install -U scikit-learn</span ></pre >
78
-
77
+ ><span >pip install -U scikit-learn</span ></pre >
78
+
79
79
<pre class =" sk-expandable" data-packager =" pip" data-os =" mac" data-venv =" no"
80
- ><span class = " prompt1 " >pip install -U scikit-learn</span ></pre >
81
-
80
+ ><span >pip install -U scikit-learn</span ></pre >
81
+
82
82
<pre class =" sk-expandable" data-packager =" pip" data-os =" linux" data-venv =" "
83
- ><span class = " prompt1 " >python3 -m venv sklearn-venv</span >
84
- <span class = " prompt1 " >source sklearn-venv/bin/activate</span >
85
- <span class = " prompt1 " >pip3 install -U scikit-learn</span ></pre >
86
-
83
+ ><span >python3 -m venv sklearn-venv</span >
84
+ <span >source sklearn-venv/bin/activate</span >
85
+ <span >pip3 install -U scikit-learn</span ></pre >
86
+
87
87
<pre class =" sk-expandable" data-packager =" pip" data-os =" windows" data-venv =" "
88
- ><span class = " prompt1 " >python -m venv sklearn-venv</span >
89
- <span class = " prompt1 " >sklearn-venv\Scripts\activate</span >
90
- <span class = " prompt1 " >pip install -U scikit-learn</span ></pre >
91
-
88
+ ><span >python -m venv sklearn-venv</span >
89
+ <span >sklearn-venv\Scripts\activate</span >
90
+ <span >pip install -U scikit-learn</span ></pre >
91
+
92
92
<pre class =" sk-expandable" data-packager =" pip" data-os =" mac" data-venv =" "
93
- ><span class = " prompt1 " >python -m venv sklearn-venv</span >
94
- <span class = " prompt1 " >source sklearn-venv/bin/activate</span >
95
- <span class = " prompt1 " >pip install -U scikit-learn</span ></pre >
93
+ ><span >python -m venv sklearn-venv</span >
94
+ <span >source sklearn-venv/bin/activate</span >
95
+ <span >pip install -U scikit-learn</span ></pre >
96
96
97
97
<pre class =" sk-expandable" data-packager =" conda"
98
- ><span class = " prompt1 " >conda create -n sklearn-env -c conda-forge scikit-learn</span >
99
- <span class = " prompt1 " >conda activate sklearn-env</span ></pre >
98
+ ><span >conda create -n sklearn-env -c conda-forge scikit-learn</span >
99
+ <span >conda activate sklearn-env</span ></pre >
100
100
</div >
101
101
102
102
In order to check your installation you can use
@@ -105,29 +105,29 @@ In order to check your installation you can use
105
105
106
106
<div class =" highlight" >
107
107
<pre class =" sk-expandable" data-packager =" pip" data-os =" linux" data-venv =" no"
108
- ><span class = " prompt1 " >python3 -m pip show scikit-learn # to see which version and where scikit-learn is installed</span >
109
- <span class = " prompt1 " >python3 -m pip freeze # to see all packages installed in the active virtualenv</span >
110
- <span class = " prompt1 " >python3 -c "import sklearn; sklearn.show_versions()"</span ></pre >
108
+ ><span >python3 -m pip show scikit-learn # to see which version and where scikit-learn is installed</span >
109
+ <span >python3 -m pip freeze # to see all packages installed in the active virtualenv</span >
110
+ <span >python3 -c "import sklearn; sklearn.show_versions()"</span ></pre >
111
111
112
112
<pre class =" sk-expandable" data-packager =" pip" data-os =" windows" data-venv =" no"
113
- ><span class = " prompt1 " >python -m pip show scikit-learn # to see which version and where scikit-learn is installed</span >
114
- <span class = " prompt1 " >python -m pip freeze # to see all packages installed in the active virtualenv</span >
115
- <span class = " prompt1 " >python -c "import sklearn; sklearn.show_versions()"</span ></pre >
113
+ ><span >python -m pip show scikit-learn # to see which version and where scikit-learn is installed</span >
114
+ <span >python -m pip freeze # to see all packages installed in the active virtualenv</span >
115
+ <span >python -c "import sklearn; sklearn.show_versions()"</span ></pre >
116
116
117
117
<pre class =" sk-expandable" data-packager =" pip" data-os =" mac" data-venv =" no"
118
- ><span class = " prompt1 " >python -m pip show scikit-learn # to see which version and where scikit-learn is installed</span >
119
- <span class = " prompt1 " >python -m pip freeze # to see all packages installed in the active virtualenv</span >
120
- <span class = " prompt1 " >python -c "import sklearn; sklearn.show_versions()"</span ></pre >
118
+ ><span >python -m pip show scikit-learn # to see which version and where scikit-learn is installed</span >
119
+ <span >python -m pip freeze # to see all packages installed in the active virtualenv</span >
120
+ <span >python -c "import sklearn; sklearn.show_versions()"</span ></pre >
121
121
122
122
<pre class =" sk-expandable" data-packager =" pip" data-venv =" "
123
- ><span class = " prompt1 " >python -m pip show scikit-learn # to see which version and where scikit-learn is installed</span >
124
- <span class = " prompt1 " >python -m pip freeze # to see all packages installed in the active virtualenv</span >
125
- <span class = " prompt1 " >python -c "import sklearn; sklearn.show_versions()"</span ></pre >
123
+ ><span >python -m pip show scikit-learn # to see which version and where scikit-learn is installed</span >
124
+ <span >python -m pip freeze # to see all packages installed in the active virtualenv</span >
125
+ <span >python -c "import sklearn; sklearn.show_versions()"</span ></pre >
126
126
127
127
<pre class =" sk-expandable" data-packager =" conda"
128
- ><span class = " prompt1 " >conda list scikit-learn # to see which scikit-learn version is installed</span >
129
- <span class = " prompt1 " >conda list # to see all packages installed in the active conda environment</span >
130
- <span class = " prompt1 " >python -c "import sklearn; sklearn.show_versions()"</span ></pre >
128
+ ><span >conda list scikit-learn # to see which scikit-learn version is installed</span >
129
+ <span >conda list # to see all packages installed in the active conda environment</span >
130
+ <span >python -c "import sklearn; sklearn.show_versions()"</span ></pre >
131
131
</div >
132
132
133
133
Note that in order to avoid potential conflicts with other packages it is
@@ -290,7 +290,7 @@ Note that those solvers are not enabled by default, please refer to the
290
290
`scikit-learn-intelex <https://intel.github.io/scikit-learn-intelex/what-is-patching.html >`_
291
291
documentation for more details on usage scenarios. Direct export example:
292
292
293
- .. prompt :: bash $
293
+ .. prompt :: python >>>
294
294
295
295
from sklearnex.neighbors import NearestNeighbors
296
296
@@ -340,6 +340,6 @@ using the ``regedit`` tool:
340
340
341
341
#. Reinstall scikit-learn (ignoring the previous broken installation):
342
342
343
- .. prompt :: python $
343
+ .. prompt :: bash $
344
344
345
345
pip install --exists-action=i scikit-learn
0 commit comments