Introducing
The Slant team built an AI & it’s awesome
Find the best product instantly
Add to Chrome
Add to Edge
Add to Firefox
Add to Opera
Add to Brave
Add to Safari
Try it now
4.7 star rating
0
What is the best alternative to cx_Freeze?
Ad
Ad
Pyinstaller
All
10
Experiences
Pros
7
Cons
3
Top
Pro
Easy to use
PyInstaller is one of the best tools for easily freezing Python Scripts and Modules into self-contained executables. It can be used via CLI with a single command and without many configurations. This tool pulls all the necessary files and libraries needed into a file to have your program run on any PC as an executable app.
See More
Top
Con
OS Specific
Any executable created can only run on the OS, bit size, and python version it was created on. If you want to create a package that runs on another machine you will need to know these exact parameters in order for it to function.
See More
Top
Pro
Easy install
Simply pip install pyinstaller and it is ready to go.
See More
Top
Con
Not highly configurable
There is an option to dictate that the package should be completely run from one file, but other than a few other modification commands pyinstaller is not very configurable.
See More
Top
Pro
Executables can be compressed with UPX to reduce their size drastically
Executables can be compressed with UPX, a free utility. You can see how it works here. Note that currently, it has no effect on macOS 64-bit.
See More
Top
Con
Fails to produce .exe
Produces nothing in the \dist directory, no .exe file, nothing except a \setup directory. A waste of disk space. I have a simple single python .py file, marginally above "hello", no user input, a simple parse of known binary file to a known text file. Copious unintelligible output to no effect.
See More
Top
Pro
Compatible with most 3rd-party packages out-of-the-box
Most packages will work without any configuration. The community maintains a list of tested packages here. The list is incomplete so any user can contribute to it by editing the table or writing to the mailing list.
See More
Top
Pro
Compatible with Cython modules
Pyinstaller can resolve, use, and package Cython modules into the executable.
See More
Top
Pro
Can obfuscate Python byte code
Python bytecode can be obfuscated by specifying an encryption key with a CLI command. This should prevent most forms of tampering with the executable, such as reverse-engineering it to extract the underlying Python code. While the bytecode is encrypted using AES256, it should not be confused for security because the key can be extracted from the executable.
See More
Top
Pro
Can add binariess to the executable
The --add-binary flag allows you to bundle external executables along with your script. You can, for example, bundle chromium or selenium.
See More
Hide
See All
Experiences
Get it
here
5
3
Built By the Slant team
Find the best product instantly.
4.7 star rating
Add to Chrome
Add to Edge
Add to Firefox
Add to Opera
Add to Brave
Add to Safari
Try it now - it's free
{}
undefined
url next
price drop