#๐ .py to .exe
34 messages ยท Page 1 of 1 (latest)
@frozen trout
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.
Did you google it? I know that's not a helpful answer but it seems like something you can google first
no easy way to do that without some quirks
try stuff like pyinstaller or nuitka
!pypi py2exe
!pypi pyinstaller
the quirks might include, the resulting file being comparatively big, windows flagging your program as a virus, some jank with importing modules / file paths, etc.
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
no
ok
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
why were you using noconsole?
chat cpt told
chatcrappity isn't reliable.
try doing the same thing again without --noconsole
okay
I think they meant "i had one python file"
yea
Oh my bad, that makes sense
Anyway, did not using the --noconsole work?
wait i go eating rn
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
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.