[Python] How to compile python script to binary executable

Discussão em 'Python' iniciado por Stack, Junho 28, 2025.

  1. Stack

    Stack Membro Participativo

    I need to convert a Python script to a Windows executable.

    I have Python 2.6 installed to python26.

    I have created one script and kept it in C:\pythonscript. Inside this folder there are two files

    Setup.py and oldlogs.py (this file need coversion)

    setup.py code is

    from distutils.core import setup
    import py2exe

    setup(console=['oldlogs.py'])


    How can I convert oldlogs.py to an exe file?

    Continue reading...

Compartilhe esta Página