Search code examples
python-3.xcx-freeze

Ship a python project


I have worked on a Python 3.6 project which I want to ship to a client. I have tried 'Cx_freeze' to create an executable file of the project but it throws as error as displayed in the screenshot below. enter image description here

Is this the best way to distribute python code ?


Solution

  • Use pyinstaller

    pip install pyinstaller
    

    once installed,

    pyinstaller myprogram.py
    

    there is alternate,

    http://www.py2exe.org/

    but pyinstaller simple and better than others