Jump to content

[Source] py2exe


Dalfior
 Share

Recommended Posts

E ai pessoal tudo bem, sou novo por aqui, estava lendo um tópico a respeito do py2exe, e achei esta source no site oficial, por sinal muito simples mas funciona muito bem lá vai...

from distutils.core import setup
import py2exe

setup(console=['NOME DO SEU PROGRAMA.py'])

salve com o nome setup.py

Agora abra o prompt,    ( iniciar>executar>cmd )... e execute o setup e o py2exe desta forma: c:\setup.py py2exe

Prontinho... Vão ser criadas duas pastas build, e dist o .exe vai estar na pasta dist...

Está muito auto explicativo  😄 ... mas tive muita dificuldade em descobrir como fazer isso, afinal sou autoditada dai complica um pouco as coisas, espero ter ajudado.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...

Important Information

By using this site you accept our Terms of Use and Privacy Policy. We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.