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
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