ValueError: Unknown MS Compiler version 1900

后端 未结 6 1103
日久生厌
日久生厌 2020-11-28 07:08

I am trying to run some code with Python 3.5 on Windows 10 with the use of cygwin (mingw). To be precise I am using the PyDSTool module, where I call the dopri integrator. T

6条回答
  •  误落风尘
    2020-11-28 07:34

    If anyone still has this problem,i just ran into it while installing yowsup and python-axolotl, this is what i did to solve it:

    1- Apply the patch from Tharen into the python cygwinccompiler.py file (located in your python installation folder) https://bugs.python.org/file40608/patch.diff

    2-With mingw, install pexports, open a terminal in administrator mode and type:

    mingw-get install pexports
    

    2-Go to the python install folder, in my case it was C:\Program Files (x86)\Python36-32

    still in the same terminal we used to install pexports, after navigating to the python install folder run the following:

    pexports vcruntime140.dll >libs\vcruntime140.def
    dlltool -dllname vcruntime140.dll --def libs\vcruntime140.def --output-lib libs\libvcruntime140.a
    

    Then go back to the folder where you were installing the library, or whatever you were doing before, it should work now.

    btw, dont forget to add

    [build]
    compiler = mingw32 
    

    in the distutils file.

    Source: this own post and https://bugs.python.org/issue25251

提交回复
热议问题