@@ -35,8 +35,8 @@ Building from source
35
35
Scikit-learn requires:
36
36
37
37
- Python (>= 3.5),
38
- - NumPy (>= 1.11 ),
39
- - SciPy (>= 0.17 ).
38
+ - NumPy (>= 1.8.2 ),
39
+ - SciPy (>= 0.13.3 ).
40
40
41
41
.. note ::
42
42
@@ -46,7 +46,7 @@ Scikit-learn requires:
46
46
47
47
Building Scikit-learn also requires
48
48
49
- - Cython >=0.28.5
49
+ - Cython >=0.23
50
50
51
51
Running tests requires
52
52
@@ -165,16 +165,25 @@ Windows
165
165
To build scikit-learn on Windows you need a working C/C++ compiler in
166
166
addition to numpy, scipy and setuptools.
167
167
168
- The building command depends on the architecture of the Python interpreter,
169
- 32-bit or 64-bit. You can check the architecture by running the following in
170
- ``cmd `` or ``powershell `` console::
168
+ Picking the right compiler depends on the version of Python (2 or 3)
169
+ and the architecture of the Python interpreter, 32-bit or 64-bit.
170
+ You can check the Python version by running the following in ``cmd `` or
171
+ ``powershell `` console::
172
+
173
+ python --version
174
+
175
+ and the architecture with::
171
176
172
177
python -c "import struct; print(struct.calcsize('P') * 8)"
173
178
174
179
The above commands assume that you have the Python installation folder in your
175
180
PATH environment variable.
176
181
177
- You will need `Build Tools for Visual Studio 2017
182
+
183
+ Python >= 3.5
184
+ -------------
185
+
186
+ For Python versions as of 3.5, you need `Build Tools for Visual Studio 2017
178
187
<https://visualstudio.microsoft.com/de/downloads/> `_.
179
188
180
189
For 64-bit
10000
Python, configure the build environment with::
@@ -189,6 +198,53 @@ And build scikit-learn from this environment::
189
198
Replace ``x64 `` by ``x86 `` to build for 32-bit Python.
190
199
191
200
201
+ 32-bit Python (<= 3.4)
202
+ ----------------------
203
+
204
+ For 32-bit Python versions up to 3.4 use Microsoft Visual C++ Express 2010.
205
+
206
+ Once installed you should be able to build scikit-learn without any
207
+ particular configuration by running the following command in the scikit-learn
208
+ folder::
209
+
210
+ python setup.py install
211
+
212
+
213
+ 64-bit Python (<= 3.4)
214
+ ----------------------
215
+
216
+ For 64-bit Python versions up to 3.4, you either need the full Visual Studio or
217
+ the free Windows SDKs that can be downloaded from the links below.
218
+
219
+ The Windows SDKs include the MSVC compilers both for 32 and 64-bit
220
+ architectures. They come as a ``GRMSDKX_EN_DVD.iso `` file that can be mounted
221
+ as a new drive with a ``setup.exe `` installer in it.
222
+
223
+ - For Python you need SDK **v7.1 **: `MS Windows SDK for Windows 7 and .NET
224
+ Framework 4
225
+ <https://www.microsoft.com/en-us/download/details.aspx?id=8442> `_
226
+
227
+ Both SDKs can be installed in parallel on the same host. To use the Windows
228
+ SDKs, you need to setup the environment of a ``cmd `` console launched with the
229
+ following flags ::
230
+
231
+ cmd /E:ON /V:ON /K
232
+
233
+ Then configure the build environment with::
234
+
235
+ SET DISTUTILS_USE_SDK=1
236
+ SET MSSdk=1
237
+ "C:\Program Files\Microsoft SDKs\Windows\v7.1\Setup\WindowsSdkVer.exe" -q -version:v7.1
238
+ "C:\Program Files\Microsoft SDKs\Windows\v7.1\Bin\SetEnv.cmd" /x64 /release
239
+
240
+ Finally you can build scikit-learn in the same ``cmd `` console::
241
+
242
+ python setup.py install
243
+
244
+ Replace ``/x64 `` by ``/x86 `` to build for 32-bit Python instead of 64-bit
245
+ Python.
246
+
247
+
192
248
Building binary packages and installers
193
249
---------------------------------------
194
250
0 commit comments