Questions tagged [cx-freeze]

cx_Freeze is a set of scripts and modules for freezing Python scripts (.py) into executable files for Windows (.exe), Mac OS (.app), or Linux.

cx_Freeze is a set of scripts and modules for freezing Python scripts (.py) into executable files for Windows (.exe), Mac OS (.app), or Linux, in much the same way that py2exe and py2app do. These executable files can run on a system without Python installed.

cx_Freeze works with Python versions 2.7 to 3.8.

For Python version 2.7, the latest stable version of cx_Freeze is 5.1.1 (released December 2017) which can be downloaded here: https://pypi.org/project/cx-Freeze/5.1.1/

For Python versions 3.0 to 3.4, the latest stable version of cx_Freeze is 5.0.2 (released May 2017) which can be downloaded here: https://pypi.org/project/cx-Freeze/5.0.2/

For Python versions 3.5 to 3.8, the latest stable version of cx_Freeze is 6.1 (released January 2020) which can be downloaded here: https://pypi.org/project/cx-Freeze/6.1/

Documentation: http://cx-freeze.readthedocs.io/en/latest/index.html

Project: https://anthony-tuininga.github.io/cx_Freeze/

1734 questions
10
votes
2 answers

cx-freeze doesn't find all dependencies

I have a python script (2.7) with some "interesting" imports at the top. I initially wanted to use py2exe to compile this into an exe that I can more easily distribute (py2exe doesn't find all dependencies). I have given up and am trying to use…
Doo Dah
  • 3,979
  • 13
  • 55
  • 74
10
votes
3 answers

Requests library: missing SSL handshake certificates file after cx_Freeze

I'm building an application in python 3.3 which uses the requests library. When I try to get a URL with SSL connection I want to verify it with verify = true. This works perfectly when running my python scripts. When I freeze the same scripts it…
Ecno92
  • 869
  • 11
  • 16
10
votes
2 answers

How do I create an all in one exe file from cx_freeze (or installer) from python 3.3

I have made a GUI python script that I would like to share with my coworkers to improve productivity. I need a way to include everything in one file/directory for them to use. I tried the standard python setup.py build But it does not contain…
mad5245
  • 394
  • 3
  • 8
  • 20
10
votes
2 answers

cx_freeze: How do I add package files into library.zip?

I've noticed that pytz misses zoneinfo folder when I try to roll a zip for Windows. Right now I have a workaround that I use after python setup.py build, namely 7z a -xr!*.py* build\exe.win32-2.7\library.zip C:\Python27\Lib\site-packages\pytz Is…
mlt
  • 1,595
  • 2
  • 21
  • 52
9
votes
3 answers

Python 3 project into exe?

I've made my first Python program, using Python 3.2. Now I'm trying to figure out how to make it an executable. I pretty much only need it for Windows only. I've searched as much as possible and found out that py2exe doesn't support Python 3.…
Martti Laine
  • 12,655
  • 22
  • 68
  • 102
9
votes
7 answers

Hide console window with Tkinter and cx_Freeze

I am using cx_freeze to freeze a tkinter app. When I run the exe I get a wonderfully USELESS console window along with my tkinter GUI. I would like to remove/hide this useless black window. I've seen threads that suggest the following: root =…
Rhys
  • 4,926
  • 14
  • 41
  • 64
9
votes
1 answer

cx_freeze: can't find a usable init.tcl in the following directories

As far as I'm aware, cx_freeze is the only app able to make Python scripts to .exe files. However, I would like to make a GUI exe in Python 3. And after freezing a simple Tkinter GUI and running the exe, I get the following error: >…
Rhys
  • 4,926
  • 14
  • 41
  • 64
9
votes
1 answer

import _tkinter # If this fails your Python may not be configured for Tk

Some initial information: I have windows 10 on my computer and all programs are 64-bit versions. I'm writting a game in python (3.6.1) using tkinter and now I would like to convert it to .exe. I have used cx_freeze (5.0.1) and it made the build, but…
PircK
  • 93
  • 1
  • 1
  • 6
9
votes
1 answer

cx_freeze PyGObject application on Linux

I have a simple PyGObject application: from gi.repository import Gtk class Window(Gtk.Window): def __init__(self, *args, **kwargs): super().__init__(*args, **kwargs) self.set_border_width(5) self.button =…
Fenikso
  • 9,251
  • 5
  • 44
  • 72
9
votes
2 answers

cx_freeze - including my own modules?

I have a small application built with PyQt4 that I'm trying to freeze with cx_freeze, but I'm running into an issue with cx_freeze including some of my own modules that are required for the application to work. I have two modules that are imported…
dan_g
  • 2,712
  • 5
  • 25
  • 44
9
votes
1 answer

cx_Freeze. How install service and execute script after install

I wrote lets scripts for customer. In order not to install python and dependent packages, I packed all to 3 exe-file using cx-freeze. First - winservice, who does most of the work. Second - settings wizard. Third - client for work with winservice.…
aavezel
  • 604
  • 3
  • 10
8
votes
2 answers

Absolute paths after freezing with cx_freeze (Qt5 / PySide2 App)

Problem: I cannot distribute a cx_freeze generated .exe to another machine, because it seems the exe contains references to absolute paths on the machine that generated the .exe. I also had to include vcruntime140.dll direktly, because…
Harper
  • 1,073
  • 1
  • 10
  • 23
8
votes
5 answers

Intel MKL FATAL ERROR: Cannot load mkl_intel_thread.dll

Previously I asked a similar question: cx_Freeze unable fo find mkl: MKL FATAL ERROR: Cannot load mkl_intel_thread.dll But now I have a subtle difference. I want to run the program without installing anaconda, just within a cmd.exe terminal, but it…
Alejandro Alcalde
  • 5,990
  • 6
  • 39
  • 79
8
votes
4 answers

Cannot load mkl_intel_thread.dll on python executable

I'm trying to create an executable python program that runs on windows without python being installed, for this I'm using cx_Freeze. But I get the following error: "Cannot load mkl_intel_thread.dll" On my PC, which has python installed…
Carlos
  • 586
  • 1
  • 9
  • 19
8
votes
5 answers

Can't install cx_Freeze or scipy for Python 3.7 64-bit

I'm trying to install cx_Freeze and scipy but I get a compile failed with error code 1 error every time. Here's what I see when I try to do it with cx_Freeze: error: file…
Cole
  • 183
  • 2
  • 5
  • 13