Building NumPy with MKL on Windows

■ Christoph Gohlke's Windows Wheels site ・ What to do when Gohlke's python wheel service shuts down? [closed] - Stack OverflowChristoph Gohlke's Windows Wheels site is shutting down by the end of the month - Reddit ■ Build Policy ・ Tools ・ python packages cython (specified version in the ) pytest wheel ・ ・ ■ Build Steps 1. install (or update) the above tools 2. download source code zip: e.g., numpy-1.24.1.zip from GitHub realease tags 3. copy site.cfg.example to site.cfg 4. edit site.cfg [mkl] include_dirs = C:\Program Files (x86)\Intel\oneAPI\mkl\2021.1.1\include library_dirs = C:\Program Files (x86)\Intel\oneAPI\mkl\2021.1.1\lib\intel64 libraries = mkl_rt libraries = mkl_core libraries = mkl_intel_ilp64.lib mkl_intel_thread.lib mkl_core.lib libiomp5md.lib 5. invoke command prompt () 6. python setup.py bdist_wheel "C:\Program Files\Python310\python.exe" setup.py bdist_wheel dist/numpy-1.24.1-cp39-cp39-win_amd64.whl ■ Current References ・ Building from sourceNumpy/Scipy with Intel® MKL and Intel® CompilersIntel® Distribution for PythonIntel® oneAPI Math Kernel Library Link Line Advisor oneMKL 2022 Windows* C/C++ intel(R) 54 Static OpenMP threading intel(R) (libiomp5) Use this link line: mkl_intel_ilp64.lib mkl_intel_thread.lib mkl_core.lib libiomp5md.lib Compiler options: /DMKL_ILP64 -I"%MKLROOT%\include" ・ Compiling numpy & scipy with Intel MKL in windows 10 ■ Static Linking ・ static linking with MKL ■ Rather Old References ・ Building numpy and scipy with Intel compilers and Intel MKL on a 64 bit machine - Jan-Philip GehrckeBuilding Scipy/Numpy on Windows with Optimized Numerical Librarie ■ Other References ・ How to solve "error: Microsoft Visual C++ 14.0 or greater is required" when installing Python packages? - Stack OverflowHow to get egg or wheel file of pip-installed python package? - Stack OverflowMKL版NumPy, SciPy をビルドする方法(お手軽バージョン)