Como usar o pyinstaller?
Criando executável de um código python
Para instalar o PyInstaller:
py2exe - gera um único arquivo executável
Se você deseja obter um aplicativo binário autônomo em Python, tente usar uma ferramenta como o py2exe ou o PyInstaller . Posso descompilar a saída do PyInstaller? Você pode usar o PyInstaller. Ele gera um build dist para que você possa executá-lo como um único arquivo "binário".
2 Respostas
Todo pacote distribuído pelo PyPI precisa ter uma arquivo setup.py em seu diretório raiz. E se seu projeto também usa um arquivo readme em markdown(normalmente chamado README.md ) você também precisará criar um arquivo chamado setup. cfg no diretório raiz do módulo.
Introduction PyInstaller can be used to create.exe files for Windows,.app files for Mac, and distributable packages for Linux. Optionally, it can create a single file which is more convenient for distributing, but takes slightly longer to start because it unzip itself.
PyInstaller Tutorial 1 Introduction. PyInstaller can be used to create .exe files for Windows, .app files for Mac, and distributable packages for Linux. 2 Installation. To install PyInstaller, use pip and install the pyinstaller package. 3 Simple build. ... 4 Build with .spec file. ... 5 Conclusion. ... 6 References
About a month ago, I used PyInstaller and Inno Setup to produce an installer for my Python 3 script. My AVG Business Edition AntiVirus just started complaining with today's update that the program has an SCGeneric Trojan Horse in the main .exe file used to start the program (in the folder created by PyInstaller that has all of the Python "guts").
Once the .spec file is up to your standards, use pyinstaller and pass it the .spec file as the first argument. It will use the information specified in the file to create the final distributable package. The output will be in the dist/ folder the same as building without the .spec file.
Quantos tiros da uma pistola ponto 40?
Quais são as aves de mau agouro?
Como nasce o filhote de baleia?
Como fazer o chá de marapuama em pó?
O que é uma mãe suficientemente boa?
Quanto tempo demora para a pele voltar ao normal depois de peeling?
É possível mudar de carreira aos 35 anos?
Qual a diferença de adubo orgânico e adubo sintético?
Quantos gols Messi fez em 2014?
Quanto ganha um guarda florestal?
Quanto tempo pode deixar o chá de alecrim no cabelo?
Como desbotar o cabelo que ficou escuro?
Quantos pênaltis O Reinaldo perdeu pelo São Paulo?
Qual o primeiro alimento transgênico aprovado para a comercialização?
Qual é a temperatura ideal do ar-condicionado?