Pyinstaller onefile does not start on some Windows 7 machines

前端 未结 2 2133
小鲜肉
小鲜肉 2021-02-15 00:52

I have created an exe file which works fine on some Windows machines and fails on others.

I could not yet find the cause for failing.

Important data:

    <
相关标签:
2条回答
  • There's a discussion about this here working towards a build side solution rather than having to install the Windows Update: https://github.com/pyinstaller/pyinstaller/issues/1566 . As of today (9th May 2017) there's still no firm solution. There are 2 solutions that have worked for some people:

    • Install the Windows 10 SDK and add the ucrt DDL dirs to your system path (C:\Program Files\Windows Kits\10\Redist\ucrt or C:\Program Files (x86)\Windows Kits\10\Redist\ucrt\DLLs\x64 depending on your system) before building

    • Use Python 3.4 to build instead of 3.5+

    0 讨论(0)
  • 2021-02-15 01:29

    After installing around 200 Windows updates the error is gone.

    The required update is addressed by KB2999226

    0 讨论(0)
提交回复
热议问题