Python Forum
py file to exe - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: General Coding Help (https://python-forum.io/forum-8.html)
+--- Thread: py file to exe (/thread-30994.html)



py file to exe - rafarangel - Nov-17-2020

Hi,

How can I convert a py file to exe without creating folders such as "dist", "pycache" and "build"?

Thanks


RE: py file to exe - Axel_Erfurt - Nov-17-2020

Are you talking about pyinstaller?

If you create a single file (pyinstaller --onefile), you you can delete these folders afterwards.

But they are needed first to create the exe.