Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Make a exe for both windows 7 and windows 10(python script)

Tags:

python

exe

I have a python project and i converted it to a exe on my desktop(Windows 10) but when i send .exe file to my friend(My friend use Windows 7), IT IS NOT WORKING!

So how can I convert a exe file for Both windows 7 and Windows 10

Thank you very much!

like image 712
Dile Avatar asked Mar 28 '26 16:03

Dile


1 Answers

Take a look at the following topic

Py2exe and psycopg, build on Windows 10, can't run on Windows 7

Add this to the options dict in setup.py:

dll_excludes': ['Secur32.dll', 'SHFOLDER.dll', 'CRYPT32.dll']

like image 78
Alik.Koldobsky Avatar answered Mar 31 '26 05:03

Alik.Koldobsky