How to Make Python Scripts Executable Using Cx Freeze on Ubuntu 14.04? [Closed]

I want to convert my python project into a binary executable using CX Freeze on Ubuntu 14.04. How to do I run CX Freeze on Ubuntu???

sudo apt install cx-freeze
cxfreeze myscript.py

There are a load of options for customising this but for a simple script, that should do it. If it's not working, check out the documentation or read man cxfreeze.

Anyway, when it works it generates a directory called dist that contains an executable (based on the name of the script) and everything it needs to run. To execute from the current directory, just run:

./dist/myscript
2
Marcus Vance

Marcus Vance

Cybersecurity & Digital Privacy Researcher

Marcus Vance is a cybersecurity auditor and technology writer dedicated to educating the public about online safety, data privacy regulations, enterprise security, and emerging cyber threats.

Share this article
Twitter Facebook Pinterest