Create standalone executables from Python scripts

cx-freeze, cxfreeze, cx_Freeze, freeze, python, freezing-python-scripts
pip install cx-Freeze==6.9


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.


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.


The official documentation is available here.

If you need help you can also ask on the discussion channel:


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.