Cx_freeze include_msvcr does not bind Windows VC2015 runtime

I am working on building my application on Windows using python 3.5.2, I built python with VC ++ Redistributable 2015.24021.

And I do not want the client to need to recompile himself, so I decided that the cx_freeze include_msvcr option might be the way to go. However, even if I use the include_msvcr parameter, the .exe file still does not work on Windows without renaming.

I see that there is VCRUNTIME140.dll, which was copied from my built-in python 3.5.2 and runs on machines without redoing complaints about the lack of api-ms-win-crt-stdio-l1-1-0.dll,

I can find this .dll file on my build machine, so here are some quick questions.

  • Is include_msvcr not expected to link dependent .dll files like the above?
  • Is there any workaround? How to add dll to include_files? Where should I put as the destination for the dll?

Many thanks.

+4
source share

Source: https://habr.com/ru/post/1671072/


All Articles