
If the package's setup.py (still) uses distutils rather than the recommended setuptools, you may need extra steps:ĭistutils only supports the very minimum of compiler setups. So, you need to install the compiler version that corresponds to your Python version : CPython 2.7 uses Visual C++ 9.0, CPython 3.3 uses Visual C++ 10.0, etc). Which Microsoft Visual C++ compiler to use with a specific Python version ?Įach Python version uses a specific compiler version (e.g. The compiler's architecture must be the same as Python's (for example: if you use Python 64bit, you have to use an 圆4 compiler). Some alternative compilers exist like MinGW, but incompatibilities may occur with a CPython official distribution that is built with Microsoft Visual C++. Microsoft provides official C++ compilers called Visual C++, you can find them bundled with Visual Studio or, for some versions, in standalone distributions. Install a non-pure Python package from sources with Pip (if there is no Wheel package provided). Unlike Linux, compilers for Windows are not included by default in the OS.įor example, you will need to use them if you wish to:


Microsoft Visual C++ 14.1 standalone: Build Tools for Visual Studio 2017 (x86, 圆4, ARM, ARM64).Microsoft Visual C++ 14.2 with Visual Studio 2019 (x86, 圆4, ARM, ARM64).Microsoft Visual C++ 14.2 standalone: Build Tools for Visual Studio 2019 (x86, 圆4, ARM, ARM64).

Microsoft Visual C++ 14.x with Visual Studio 2022 (x86, 圆4, ARM, ARM64).Compilers Installation and configuration.

Which Microsoft Visual C++ compiler to use with a specific Python version ?.
