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

Question:

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!

Asked By: Dile

||

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

Answered By: Alik.Koldobsky
Categories: questions Tags: ,
Answers are sorted by their score. The answer accepted by the question owner as the best is marked with
at the top-right corner.