Create An Exe Compatible With All Versions Of Windows 64-bit And 32-bit Even If Python Isn't Installed With Pyinstaller
Solution 1:
The issue is that Windows 10 and PyInstaller do not play well together. Your program will run on your system, but on other (earlier) Windows systems it will not. This has to do with all those warnings about missing dlls and dependencies. The following link offers a lot more information and solutions:
https://github.com/pyinstaller/pyinstaller/issues/1566
Below was my solution to the problem (taken from the above link):
1) Download and install this Windows SDK: https://developer.microsoft.com/en-us/windows/downloads/windows-10-sdk
2) These dlls can then be found here (or Program Files x86):
C:\Program Files\Windows Kits\10\Redist\ucrt\DLLs
3) Update your pathex variable in your spec file to tell pyinstaller to look there:
pathex=['C:\\Users\\grey_hat\\Desktop\\csm\\test',
'C:\\Program Files (x86)\\Windows Kits\\10\\Redist\\ucrt\\DLLs\\x86',
'C:\\Program Files (x86)\\Windows Kits\\10\\Redist\\ucrt\\DLLs\\x64']
4) run pyinstaller:
pyinstaller yourspecfile.spec
This may not be the only solution, but it is how I got it working for my setup.
Post a Comment for "Create An Exe Compatible With All Versions Of Windows 64-bit And 32-bit Even If Python Isn't Installed With Pyinstaller"