ValueError: Unknown MS Compiler version 1900

I made the following changes and it worked for me with the following configurations.

  • OS : Win 7 Prof. SP1 64 bit
  • CPython 3.6 , 64 Bit
  • Mingw 64 (x86_64-7.1.0-posix-seh-rt_v5-rev0)
  • Cython 0.25.2

I did the following

  1. Add mingw in the PATH variable (C:\mingw-w64\x86_64-7.1.0-posix-seh-rt_v5-rev0\mingw64\bin for me)
  2. Test by opening command line and command gcc works ( I have no other compilers)
  3. Create distutils.cfg in C:\Python36\Lib\distutils
  4. Add lines in that file:

    [build]
    compiler = mingw32
    
  5. Manually applying this patch

  6. Manually downloading the file vcruntime140.dll and putting it in C:\Python36\libs

Leave a Comment