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
12
votes
2 answers

Convert tkinter to EXE

Currently, I'm trying to convert my tkinter Python script to an EXE file using cx_freeze. It is somehow not working when I try to add another file. You can see the method I've used in the minimum example I'm using below. import tkinter as tk import…
Beertje
  • 519
  • 2
  • 5
  • 14
12
votes
3 answers

Why am I getting a "no module named cx_Freeze" error after installing cx_freeze?

I am trying to compile a python program and I am using python 3.2. So I downloaded cx_freeze and installed it. When I try to run the setup.py in cmd it says: "importerror: no module named cx_freeze" I have removed cx_freeze and tried to re-install…
bla bla
  • 83
  • 1
  • 1
  • 10
12
votes
2 answers

Moving all the DLL and PYD to a sub-folder with cx_Freeze

This has come up quite a few times on the cx_Freeze mailing lists (see cx_Freeze and moving files around Creating fewer files when freezing a Python application cx_freeze python single file? ) and it seems to me like it ought to be a simple fix,…
ibell
  • 1,070
  • 8
  • 29
12
votes
1 answer

Change icon for a cx_Freeze script

I was just wondering if it's possible to change the program icon for a cx_Freeze script, I've looked around but I couldn't find anything.
Joseph Smith
  • 3,243
  • 5
  • 20
  • 18
11
votes
3 answers

When using cx_Freeze and tkinter I get: "DLL load failed: The specified module could not be found." (Python 3.5.3)

When using cx_Freeze and Tkinter, I am given the message: File "C:\Users\VergilTheHuragok\AppData\Local\Programs\Python\Python35-32\lib\tkinter\__init__.py", line 35, in import _tkinter # If this fails your Python may not be configured for…
Reece Mathews
  • 381
  • 1
  • 2
  • 11
11
votes
4 answers

cx_Freeze converted GUI-app (tkinter) crashes after pressing plot button

I've been dealing with this for days now and hope to find some help. I developed a GUI-application with imported modules tkinter, numpy, scipy, matplotlib, which runs fine in python itself. After having converted to an exe everything works as…
benellinger
  • 113
  • 1
  • 1
  • 8
11
votes
2 answers

Can I make a 32-bit program with cx_Freeze if I have a 64-bit OS?

I am currently running Windows 7 Home 64-bit and am working on a program that I would like to make available for both 32-bit and 64-bit Windows operating systems. When I use cx_Freeze to turn my .py to a .exe, it only allows it to be installed on…
user4304303
11
votes
2 answers

cx_Freeze help: is there a way to NOT make console open?

I am trying to convert a python game (made with pygame) into a exe file for windows, and I did using cx_Freeze. No problems there. The thing is that when I launch myGame.exe, it opens the normal Pygame window and a console window(which I do not…
Dalex
  • 359
  • 2
  • 3
  • 12
11
votes
0 answers

Can't set value with tkinter/python script when using cxfreeze

I have written a program in Python with a tkinter GUI front-end. When this is run from the script there are no issues. I packaged it using cx_freeze to an exe file and running it from there works for the majority of the program. However, it has a…
Holloway
  • 6,412
  • 1
  • 26
  • 33
11
votes
2 answers

After creating python exe file with cx_freeze the file doesn't do anything

I recently created used cx_freeze to create a python 3.2.2 exe file. When I tried to run the exe file nothing happened. Here is the code for my test.py file: print("hello world") for i in range(5): print(i) Here is the code for my…
Snake P
  • 111
  • 1
  • 1
  • 5
10
votes
2 answers

Multiprocessing python within frozen script

I am trying to compile a script utilizing multiprocessing into a Windows executable. At first I ran into the same issue as Why python executable opens new window instance when function by multiprocessing module is called on windows when I compiled…
Reedinationer
  • 5,661
  • 1
  • 12
  • 33
10
votes
2 answers

Can EXE generated by cx_freeze be completely decompiled back to readable Python code?

I'm new to python, and I'm evaluating developing desktop programs with Python + PySide, and found that cx_freeze works very good in converting my python code into executables, and it's cross-platform. My question is, can someone else decompile an…
Edwin Yip
  • 4,089
  • 4
  • 40
  • 86
10
votes
1 answer

Freeze a program created with Python's `click` pacage

I've got a command line program that uses Python's click package. I can install and run it locally, no problem with: pip install --editable . # (or leave out the editable of course) Now, I'd like to create an executable file that can be distributed…
fenkerbb
  • 795
  • 2
  • 7
  • 18
10
votes
4 answers

'importlib._bootstrap' has no attribute 'SourceLoader'

I'm trying to build an app with cx_freeze and esky. It was working before (ok, maybe some months ago. Since then, python 3.5 went out). I have the following exception: File "/usr/lib/python3.5/site-packages/esky/util.py", line 578, in…
JPFrancoia
  • 4,866
  • 10
  • 43
  • 73
10
votes
1 answer

Python cx_Freeze name __file__ is not defined

I have a python script which gets an image from the internet, downloads it, sets as desktop background and updates after on minute. The problem is most likely cx_Freeze not including the os module, as the same code with absolute paths works fine. My…