Convert . py files to . exe files

Asked

Viewed 146 times

0

Hello, can anyone explain me how to convert an application in . py to . exe format and run in windows? I tried to use cx_freeze but could not. Is there any way to create a converter? Thanks.

  • 1

    Have you tried using the pyinstaller ?

  • No, I’m trying to understand how it works right now. But I’m banging my head on how to install and use the same.

1 answer

2

if you wish to have obligatorily an . exe, use pyinstaller. Remember that you will have to install it.

pyinstaller <nome_do_arquivo>

if you want to have a binary file, use py_compile that already comes with python utilities.

python3 -m py_compile <nome_do_arquivo>

Browser other questions tagged

You are not signed in. Login or sign up in order to post.