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
0
votes
1 answer

Issue with matplotlib and cx_freeze

I'm trying to freeze a console-based program that uses matplotlib.pyplot to generate and save plots. (I don't need to preview or view the plots in anyway before they are saved.) Here's my setup.py script: from cx_Freeze import setup,…
0
votes
2 answers

ImportError on message for Flask package - cx_freeze and Pyinstaller

I'm currently trying to create a standalone windows executable for my Python-Flask website. I've tried cx_freeze and PyInstaller, but each time I've ran into an issue with imports. Specifically, I get the following traceback: * Restarting with…
Shields
  • 76
  • 7
0
votes
1 answer

cx_Freeze with python packages (not just one module)

All of the cx_Freeze examples are for one file (module). I need to make an executable for an entire python package. Why is that hard to make? Here's my directory: test1/ __init__ __main__ The way I run this from the command line is by using…
BitsBitsBits
  • 574
  • 1
  • 4
  • 19
0
votes
0 answers

converted .py to exe, but exe won't open

I converted my .py file using cx_Freeze successfully. No errors in command prompt or anything. But for some reason, when I try and open the exe file, nothing happens. Note that I have used tkinter and matplotlib in my .py file. Here's my code for…
Andrew Louis
  • 303
  • 1
  • 2
  • 15
0
votes
1 answer

Error when converting .py file to exe

I'm getting this error in command prompt when I try to covert my .py file into an exe: [Errno 2] No such file or directory: 'C:\\Program Files\\Python35\\tcl\\tcl8.6' Here's my setup.py file code: from cx_Freeze import setup, Executable import…
Andrew Louis
  • 303
  • 1
  • 2
  • 15
0
votes
1 answer

Issue in converting python file to an executable using cx_freeze

I have been working on a python GUI based project using PyQt5. I am done with that and it runs perfectly on my PC but I want to make an executable out of it. So, i'm using cx_freeze to convert my python file to an executable. I have python version…
Azher Aleem
  • 738
  • 6
  • 15
0
votes
1 answer

When converting a python file to an executable I get a "no module named cx_freeze.util" error

I am trying to convert a simple .py file into an .exe file in order to easily distribute it. I have looked up a few tutorials and realized that cx_Freeze seems to be the best route, however I have not found a solution for this error yet. If…
0
votes
1 answer

cx freeze exe not running (nothing happens)

Windows 7 x64, Python 2.7 (Anaconda distribution), cx_Freeze 5.0 I am having trouble converting my python script to an executable using cx freeze. I can create an exe using the setup file below (with no errors mentioned) although in when building…
Tomaquet
  • 71
  • 2
  • 12
0
votes
1 answer

How to make a python executable when nothing is working?

I am using python 3.6 and nothing is working for me. I just can't install any of the tools for creating an executable. I tried cx_freeze, using pip had Visual C++ errors which I fixed and then it had more errors so I downloaded a wheel and that…
John O'Neil
  • 355
  • 1
  • 5
  • 15
0
votes
1 answer

cx Freeze "[Error 3] The system cannot find the path specified"

Windows 7 x64, Python 2.7 (Anaconda distribution), cx_Freeze 5.0. I've made a GUI application using PyQt4 and am trying to freeze the python script but get the following error: Copying data from package PyQt4... copying…
Tomaquet
  • 71
  • 2
  • 12
0
votes
1 answer

How to make py2app and cxfreeze use Python 3 as default version

I'm trying to convert a script called "applicationtest.py" into a standalone osx app. I have tried to do so with py2app: https://pythonhosted.org/py2app/tutorial.html, and with cxfreeze: http://cx-freeze.readthedocs.io/en/latest/script.html#script.…
titusAdam
  • 779
  • 1
  • 16
  • 35
0
votes
1 answer

Import Error: DLL load failed: The specified module could not be found when using cxfreeze

I've been trying to convert a .py file to a .exe file using pyinstaller (failed, too many modules missing), now I've moved on to cx_freeze, things are running smoother but I'm still unable to compile my script. I'm using windows 10, 64 bit if it…
0
votes
0 answers

cx_freeze app opens then closes quickly

i am trying to turn my python game into an exe file using cx_Freeze. The build finishes but i cannot open the app. I ran it in cmd and it says: __import__(name+"__init__") ImportError:No module named 'pygame.py__init__' not sure…
0
votes
1 answer

Error building executable with cx_Freeze: IndexError: tuple index out of range

Background I have made a program that I am trying to turn into an executable using CX_Freeze. The setup.py file is placed inside the same directory as all files I am working with. I don't use any extra libraries other than TKinter and OS. The…
0
votes
0 answers

Cannot run my .exe python program using cx_freeze

I wrote a program where I imported those lib : from math import* from pylab import* import numpy as np import matplotlib import matplotlib.backends.backend_tkagg import numpy as np import matplotlib.pyplot as plt and I wanted to make an…
John
  • 303
  • 4
  • 13