Python: compiling using cx_freeze tutorial
Why Stack Overflow recommends it
Stack Overflow users link it as a beginner-friendly walkthrough of packaging Python scripts into .exe files with cx_Freeze, and several askers cite it as the guide they followed when something went wrong.
Recommended by 1 people across 1 different months, 2013 to 2019.
What it is
A short 2012 screencast showing how to turn a Python 3 script into a Windows executable with cx_Freeze so it can run on machines without Python. The presenter walks through writing the setup.py file and running the build command, with all code listed in the description.
What people said
Recommends Duffney · 2014-03 · Stack Overflow · on “Python to Exe Creating Input Formatting Errors”
cx_freeze is relatively easy to use: here is an easy to follow tutorial to go off of [this video] I tried it in 3.3.2 and it works fine, also works with modules.
Cites ashir nasir · 2013-09 · Stack Overflow · on “"ImportError: No module named xlsxwriter" while converting python script to .exe”
My script is working fine if I run it as Python from the command line. I have converted the script to an .exe and am facing an issue with xlswrite . Below is the error output: Traceback (most recent call last): File "C:\Python27\lib\site-packages\cx_Freeze\initscripts\Console.py", line 27, in <module> exec code in m.__dict__ File "loader.py", line 5, in <module> ImportError: No module named xlsxwriter I have used this video [this video] to create the .exe for my Python script. How should I fix the import error?
Cites Gambiteer · 2014-05 · Stack Overflow · on “cx_freeze executable quickly opens and closes without doing what the script is supposed to do”
First off, I am brand new to programming, python, and this forum so sorry for any mistakes. I wrote a python script but want to be able to run it on a computer without python installed, so I did some research and found I would need to download a program in order to convert py to exe. cx_freeze was the only one that supported python 3.4. I followed the instructions in a popular YouTube video ( [this video] ) but when I double click the exe, the command box pops open for a split second and then closes. There is some text but it goes too quickly for me to read it. It looks like these threads are about the same problem but they went unanswered. Any ideas? Command prompt disappears with cx_freeze [LIN
Cites Mheruian · 2019-02 · Stack Overflow · on “Python 3.4.x Install Via TGZ on Windows 10”
I searched this and it's always about Linux operating systems and I'm unable to see any videos or tutorial sites. I have windows 10 64x based os and I plan to use Python 3.4.x ( [LINK] ) for me to use the old cx_freeze ( [LINK] ) since I have this video tutorial in youtube I am currently following [this video] which is a python 3 tutorial to create exe file. The latest cx_freeze file uses .whl files that is so inconvenient for me and I won’t be able to follow the youtube tutorial mentioned above to create a .exe file for my python, thus went on the old cx_freeze that works [LINK] where latest version is for python 3.4. The tutorial on the video has the same cx_freeze process to create a .exe file