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

Use cx-freeze to create an msi that adds a shortcut to the desktop

I am using cx-freeze to create an MSI installer for a Python application. How can I install a link to the application from the desktop?
joshuanapoli
  • 2,509
  • 3
  • 25
  • 34
17
votes
7 answers

Pyinstaller image does not load

The Problem Im trying to turn a python file into an EXE file, however I seem to be running into the same problem every single time, whether it is CX_Freeze or Pyinstaller. I just tried using pyinstaller and I made an EXE file using the…
abc1234
  • 260
  • 3
  • 19
16
votes
2 answers

cx_Freeze: “No module named 'codecs'” Windows 10

I am currently making a game using pygame module. I have followed the following links' directions. https://pythonprogramming.net/converting-pygame-executable-cx_freeze/ I have solved some problems such as KeyError KeyError: 'TCL_Library' when I use…
Minha Armada Ju
  • 161
  • 1
  • 4
16
votes
2 answers

from . import _methods ImportError: cannot import name '_methods' in cx-freeze python

exe build successfully by using cx-freeze. But it shows the following error when I execute the exe file: from . import _methods ImportError: cannot import name '_methods'
Jeyi
  • 161
  • 1
  • 1
  • 4
15
votes
3 answers

Running python script with Numpy and OpenCV on Android

I have a complicated image processing script that runs in python with Numpy and OpenCV. I want to run this script in Android but I couldn't find a way to do it. After some research I found some frameworks that may help but I have some problems with…
AvielNiego
  • 1,193
  • 2
  • 12
  • 27
15
votes
1 answer

What does it mean for statically linking and dynamically linking in Python?

I know the difference between static and dynamic linking in C or C++. But what does it mean in Python? Since it's just an interpreter, and only having one style of import mechanism of modules, how does this make sense? If I freeze my Python…
Kaje
  • 851
  • 7
  • 18
15
votes
4 answers

Compiling Cx-Freeze under Ubuntu

For the entire day I have been attempting to compile cx-Freeze under Ubuntu 14.04 and had no luck. So I gave up and decided to ask experts here. What I have Ubuntu 14.04 Python 3.4 python-dev, python3-dev, python3.4-dev installed (I know this…
GriMel
  • 2,272
  • 5
  • 22
  • 40
15
votes
6 answers

ImportError: cannot import name MAXREPEAT with cx_Freeze

I'm running into an issue with cx_Freeze when running a frozen application (works fine unfrozen). When running the program it results in the following traceback: Traceback (most recent call last): File…
GP89
  • 6,600
  • 4
  • 36
  • 64
15
votes
4 answers

How to convert python .py file into an executable file for use cross platform?

I've been searching through SO for a while now trying to come up with an answer to this but due to my inexperience with programming I don't understand much of the documentation, nor am I confident enough to experiment too much. Would anyone be able…
Ricochet_Bunny
  • 537
  • 3
  • 8
  • 19
14
votes
3 answers

Python 3 executable as windows service

I'm trying to write a windows Service in python, but the tricky part is i want to deploy it on a machine that doesn't have python. I've successfully created a service like this, and it works if i run from my machine. the problem starts when i try to…
AmitE
  • 884
  • 1
  • 9
  • 13
13
votes
1 answer

cx_Freeze missing modules error

I am new to Python and cx_Freeze. Please help me to get it working. And run the command: python setup.py build It is giving me the following error. Missing modules: ? System imported from serial.serialcli ? TERMIOS imported from…
user977601
  • 503
  • 2
  • 7
  • 16
13
votes
1 answer

Pygame: ImportError: libSDL_ttf-2.0.so.0: cannot open shared object file: No such file or directory

The game is running fine from source code. When I used cx_Freeze to compile the binary file on the Linux I got into error on the second machine: ~/tmp/exe.linux-x86_64-2.7 $…
navro
  • 131
  • 1
  • 1
  • 5
13
votes
3 answers

Cx-Freeze Error - Python 34

I have a Cx_Freeze setup file that I am trying to make work. What is terribly frustrating is that it used to Freeze appropriately. Now, however, I get the following error: edit. the error that shows up is not a Python exception through the…
Spencer Bates
  • 237
  • 3
  • 11
13
votes
3 answers

error when compiling cx_Freeze on Ubuntu

I'm using Python 3.3.2 on Ubuntu , when I compiled cx_Freeze from source ,the following error occurred ,any ideas? philip@linuxmint ~/cx_Freeze-4.3.2 $ sudo python3 setup.py install [sudo] password for philip: adding base module named…
iMath
  • 2,326
  • 2
  • 43
  • 75
13
votes
1 answer

Cx_freeze error lost sys.stdin

This is a problem that has been bothering me for a while. I have looked it up, but found no answer. I have also tried figuring it out myself, but have not succeeded. Whenever I create and try to freeze a program with the input() function in it I get…
Anthony
  • 670
  • 6
  • 20