@@ -34,7 +34,7 @@ Building from source
34
34
35
35
Scikit-learn requires:
36
36
37
- - Python (>= 2.7 or >= 3.4 ),
37
+ - Python (>= 3.5 ),
38
38
- NumPy (>= 1.8.2),
39
39
- SciPy (>= 0.13.3).
40
40
@@ -110,18 +110,11 @@ Linux
110
110
111
111
Installing from source requires you to have installed the scikit-learn runtime
112
112
dependencies, Python development headers and a working C/C++ compiler.
113
- Under Debian-based operating systems, which include Ubuntu, if you have
114
- Python 2 you can install all these requirements by issuing::
115
-
116
- sudo apt-get install build-essential python-dev python-setuptools \
117
- python-numpy python-scipy \
118
- libatlas-dev libatlas3-base
119
-
120
- If you have Python 3::
121
-
113
+ Under Debian-based operating systems, which include Ubuntu::
114
+
122
115
sudo apt-get install build-essential python3-dev python3-setuptools \
123
- python3-numpy python3-scipy \
124
- libatlas-dev libatlas3-base
116
+ python3-numpy python3-scipy \
117
+ libatlas-dev libatlas3-base
125
118
126
119
On recent Debian and Ubuntu (e.g. Ubuntu 14.04 or later) make sure that ATLAS
127
120
is used to provide the implementation of the BLAS and LAPACK linear algebra
@@ -190,9 +183,7 @@ PATH environment variable.
190
183
32-bit Python
191
184
-------------
192
185
193
- For 32-bit python it is possible use the standalone installers for
194
- `microsoft visual c++ express 2008 <http://download.microsoft.com/download/A/5/4/A54BADB6-9C3F-478D-8657-93B3FC9FE62D/vcsetup.exe >`_
195
- for Python 2 or Microsoft Visual C++ Express 2010 for Python 3.
186
+ For 32-bit Python use Microsoft Visual C++ Express 2010.
196
187
197
188
Once installed you should be able to build scikit-learn without any
198
189
particular configuration by running the following command in the scikit-learn
@@ -211,34 +202,27 @@ The Windows SDKs include the MSVC compilers both for 32 and 64-bit
211
202
architectures. They come as a ``GRMSDKX_EN_DVD.iso `` file that can be mounted
212
203
as a new drive with a ``setup.exe `` installer in it.
213
204
214
- - For Python 2 you need SDK **v7.0 **: `MS Windows SDK for Windows 7 and .NET
215
- Framework 3.5 SP1
216
- <https://www.microsoft.com/en-us/download/details.aspx?id=18950> `_
217
-
218
- - For Python 3 you need SDK **v7.1 **: `MS Windows SDK for Windows 7 and .NET
205
+ - For Python you need SDK **v7.1 **: `MS Windows SDK for Windows 7 and .NET
219
206
Framework 4
220
207
<https://www.microsoft.com/en-us/download/details.aspx?id=8442> `_
221
208
222
209
Both SDKs can be installed in parallel on the same host. To use the Windows
223
210
SDKs, you need to setup the environment of a ``cmd `` console launched with the
224
- following flags (at least for SDK v7.0) ::
211
+ following flags ::
225
212
226
213
cmd /E:ON /V:ON /K
227
214
228
215
Then configure the build environment with::
229
216
230
217
SET DISTUTILS_USE_SDK=1
231
218
SET MSSdk=1
232
- "C:\Program Files\Microsoft SDKs\Windows\v7.0 \Setup\WindowsSdkVer.exe" -q -version:v7.0
233
- "C:\Program Files\Microsoft SDKs\Windows\v7.0 \Bin\SetEnv.cmd" /x64 /release
219
+ "C:\Program Files\Microsoft SDKs\Windows\v7.1 \Setup\WindowsSdkVer.exe" -q -version:v7.1
220
+ "C:\Program Files\Microsoft SDKs\Windows\v7.1 \Bin\SetEnv.cmd" /x64 /release
234
221
235
222
Finally you can build scikit-learn in the same ``cmd `` console::
236
223
237
224
python setup.py install
238
225
239
- Replace ``v7.0 `` by the ``v7.1 `` in the above commands to do the same for
240
- Python 3 instead of Python 2.
241
-
242
226
Replace ``/x64 `` by ``/x86 `` to build for 32-bit Python instead of 64-bit
243
227
Python.
244
228
0 commit comments