Skip to content

Commit ac327c5

Browse files
phausamannjnothman
authored andcommitted
[MRG] DOC Windows build dependencies (scikit-learn#12615)
1 parent d25da1b commit ac327c5

File tree

1 file changed

+24
-6
lines changed

1 file changed

+24
-6
lines changed

doc/developers/advanced_installation.rst

Lines changed: 24 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -180,10 +180,28 @@ The above commands assume that you have the Python installation folder in your
180180
PATH environment variable.
181181

182182

183-
32-bit Python
183+
Python >= 3.5
184184
-------------
185185

186-
For 32-bit Python use Microsoft Visual C++ Express 2010.
186+
For Python versions as of 3.5, you need `Build Tools for Visual Studio 2017
187+
<https://visualstudio.microsoft.com/de/downloads/>`_.
188+
189+
For 64-bit Python, configure the build environment with::
190+
191+
SET DISTUTILS_USE_SDK=1
192+
"C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Auxiliary\Build\vcvarsall.bat" x64
193+
194+
And build scikit-learn from this environment::
195+
196+
python setup.py install
197+
198+
Replace ``x64`` by ``x86`` to build for 32-bit Python.
199+
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.
187205

188206
Once installed you should be able to build scikit-learn without any
189207
particular configuration by running the following command in the scikit-learn
@@ -192,10 +210,10 @@ folder::
192210
python setup.py install
193211

194212

195-
64-bit Python
196-
-------------
213+
64-bit Python (<= 3.4)
214+
----------------------
197215

198-
For the 64-bit architecture, you either need the full Visual Studio or
216+
For 64-bit Python versions up to 3.4, you either need the full Visual Studio or
199217
the free Windows SDKs that can be downloaded from the links below.
200218

201219
The Windows SDKs include the MSVC compilers both for 32 and 64-bit
@@ -223,7 +241,7 @@ Finally you can build scikit-learn in the same ``cmd`` console::
223241

224242
python setup.py install
225243

226-
Replace ``/x64`` by ``/x86`` to build for 32-bit Python instead of 64-bit
244+
Replace ``/x64`` by ``/x86`` to build for 32-bit Python instead of 64-bit
227245
Python.
228246

229247

0 commit comments

Comments
 (0)