Since it was a forward slash, I figured it was an MSVC cl.exe argument being added to gcc somehow. Then it started compiling but again failed at trying to compile npymath because of a strange argument /GL- being added to the gcc command. 141 that MinGW-w64 was using and assigned it the value of my current msvcrt.CRT_ASSEMBLY_VERSION Adding MSVCRT version for v141 In the _MSVCRVER_TO_FULLVER I added a key for VS ver. To fix this, I opened the numpy-1.14.5\numpy\distutils\mingw32ccompiler.py file. MinGW-w64 was probably using an older version of MSVCRT ( lib\libmsvcrt.a). I got an ValueError: Version 14,1 of MSVCRT not supported. On running, python setup.py build -compiler=mingw32 I downloaded NumPy with pip download numpy=1.14.5 I first installed MinGW-w64 with Winbuilds and added it to the %PATH% environment variable. MSVC toolsets enabled: v140, v141, v142 Building with MinGW-w64 Note: Although this solution worked out for me, I’m not sure this will work for everyone so please be careful and try it at your own risk.
MINGW W64 INSTALL INSTALL
mingw-w64 setup.py build error python setup.py install error (MSVC) Trying to build it with MinGW-w64 would give me a “MSVCRT Version 14,1 not supported” error. So I figured out what the problem was on my own. Version 1.14.5, to be precise, released in 2018.īut pip install numpy=1.14.5 wouldn’t work so I tried looking for an egg/wheel. I was trying to install an old application that depends on a particular version of NumPy.