python GUI to EXE with image and modules

2019-08-16 20:12发布

问题:

I have created a Python GUI and trying to convert it to .exe with py2exe. i am using following modules wx,matplotlib,numpy,time,serial,random and a .ico image as logo.

i tried create a setup.py file but it didn't work.need help creating setup file to generate .exe of my GUI.

回答1:

It would be convenient if you could provide some details regarding why the .EXE is not being created. If you can't provide the details then please go through these questions on Stackoverflow, they maybe helpful:

How to build a python package into an exe

Making a standalone .exe file of a python script

Compiling python code into a single exe

Convert Python Script to .exe that will work on all/most versions of Windows

The best thing is to first refer to the official documentation!