Create standalone executables from Python scripts


Keywords
cx-freeze, cxfreeze, cx_Freeze, freeze, python, freezing-python-scripts
License
PSF-2.0
Install
pip install cx-Freeze==6.9

Documentation

PyPI version PyPi Downloads Anaconda-Server Badge Anaconda-Server Badge Python Documentation Status License LGTM

cx_Freeze creates standalone executables from Python scripts, with the same performance, is cross-platform and should work on any platform that Python itself works on.

Highlights of Version 6.2 up to 6.9:

  • Support for pathlib.Path
  • New or improved hooks, with emphasis on matplotlib, numpy, PyQt5 and PySide2
  • New ModuleFinder engine uses importlib.machinery
  • Refactored Freezer
  • New support for package metadata improving Module and new DitributionCache
  • Enhanced support for Python 3.8 and Python 3.9, including MSYS2 and Anaconda distributions
  • Improvements for multiprocessing
  • Optimizations in detection and distribution of libraries
  • Integrated to setuptools and importlib-metadata
  • Code modernization
  • Various bug fixes.

Installation

In a virtual environment, install by issuing the command:

pip install --upgrade cx_Freeze

To install beta versions:

pip install --upgrade cx_Freeze --pre

Please check the installation in documentation for requirements.

Documentation

The official documentation is available here.

If you need help you can also ask on the discussion channel: https://github.com/marcelotduarte/cx_Freeze/discussions

License

cx_Freeze uses a license derived from the Python Software Foundation License. You can read the cx_Freeze license in the documentation or in the source repository.