#๐Ÿ”’ .py to .exe

34 messages ยท Page 1 of 1 (latest)

frozen trout
#

how to make .py to .exe

final capeBOT
#

@frozen trout

Python help channel opened

Remember to:

  • Ask your Python question, not if you can ask or if there's an expert who can help.
  • Show a code sample as text (rather than a screenshot) and the error message, if you've got one.
  • Explain what you expect to happen and what actually happens.

:warning: Do not pip install anything that isn't related to your question, especially if asked to over DMs.

leaden shoal
uneven musk
#

no easy way to do that without some quirks
try stuff like pyinstaller or nuitka

leaden shoal
#

!pypi py2exe

final capeBOT
#

Build standalone executables for Windows

Released on <t:1696713696:D>.

leaden shoal
#

!pypi pyinstaller

final capeBOT
#

PyInstaller bundles a Python application and all its dependencies into a single package.

Released on <t:1717848660:D>.

uneven musk
frozen trout
#

i tryed that with my file last time i got 1 folder and 1 .py when i do
--onefile --noconsole main.py then it dont work

#

can some1 make a video for tutorial plszz

leaden shoal
frozen trout
#

ok

leaden shoal
#

But i bet you can find tons already up there on youtube

#

but also, if you go into more detail about what "dont work" means, then we could help you here

hasty trench
frozen trout
#

chat cpt told

hasty trench
#

try doing the same thing again without --noconsole

frozen trout
#

okay

halcyon dust
leaden shoal
#

I think they meant "i had one python file"

frozen trout
#

yea

halcyon dust
#

Anyway, did not using the --noconsole work?

frozen trout
#

no

#

still not work

#

it says failed to finde main.exe

leaden shoal
#

Can you share exactly what you're doing?

#

and the actual output

frozen trout
#

wait i go eating rn

halcyon dust
#

You're probably not running the command from wherever the file is. Look up the cd command and try to go to the correct directory. Then it'll probably work

final capeBOT
#
Python help channel closed

This help channel has been closed and it's no longer possible to send messages here. If your question wasn't answered, feel free to create a new post in #1035199133436354600. To maximize your chances of getting a response, check out this guide on asking good questions.