简体   繁体   中英

Create exe files from .py

I have a program with python and it has 3 modules .py.

what should i do to create exe format of this program?

i try this with pyinstaller but thats create exe for my main .py and other .py

modules not contains in it!

Install pyinstaller: Go to command prompt and type pip install pyinstaller .

Create .exe: If you want to create a .exe from a .py you need to open your command prompt under the correct directory of the file and type:

pyinstaller —-onefile filename  // e.g hello.py as the filename

If it has any basic graphics, type the following in command prompt

pyinstaller —-onefile -w then your file name

This should all work.

If it does not I recommend that you watch this video .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM