Python: compiling using cx_freeze tutorial

preview_player
Показать описание
I HAVE POSTED ALL CODES AND COMMANDS IN THE DESCRIPTION. PLEASE REFER TO THEM.
If you have any other problems, feel free to contact me.
In this video, I show you how to compile python programs in order to share it with someone who doesn't have Python.
It works with modules perfectly!

-----------------------------------------------------------------------
from cx_Freeze import setup, Executable

setup(
name = "" ,
version = "0.1" ,
description = "" ,
executables = [Executable("")] ,
)

----------------------------------------------------------------------------
NOTE: first go to the python32 folder in command prompt. then use the command above.

If you have any problems, please comment or PM me and I will try to find a solution for that!

Ignore these:
Python, Python compiling, cx freeze, cx_freeze, cx_freeze tutorial, cx freeze tutorial, cx_freeze compiling, compiling, tutorial, python tutorial, compiling tutorial, python 3, python programming, python tutorial, Python (programming Language), software , software tutorial, compile python,compiling python tutorial, compiling python code, how to compile python code, py2exe, easy way to compile python
Рекомендации по теме
Комментарии
Автор

Omg. I only have two words : THANK YOU.

There were 3 days that I searched how to do that with cx_freeze !! Your tutorial is the best tutorial of all the tutorials about .py to .exe with cx_freeze. Thank you very much again, really.

(Ps : I'm not english, I'm french and I understand how to do that only with the video)

ThuyDuyen
Автор

Very good tutorial. Worked first time for me. I had so many problems with CX_Freeze before and this cleared up all of my issues. Thank you!

EricNuno
Автор

Thank you for taking the time to create this video. It was very easy to understand and was very helpful.

spainhughes
Автор

Worked with a simple text program and also a bigger game without any problems. Finally I have a way to share my stuff!

HermanAnimation
Автор

thanks, this really did work on python 3.2

if using a GUI, i added this as my setup

from cx_Freeze import setup, Executable

exe = Executable(
script="memory.py",
base="Win32GUI",
)

setup(
name = "Memory",
version = "0.1",
description = "Test",
executables = [exe]
)

pkflyers
Автор

Thanks for the video ! cx_Freeze initially didn't work for me, but seeing how the installation wizard looked like in your case made me aware of that it didn't work for me because I installed the 64bit version. I do have a 64 bit Windows but actually installed a 32bit version of Python. This made the 64 bit cx_Frezze installer not finding my Python installation and strangely enough it installed the packages under the directory from where I launched the msi file.

AxelMagard
Автор

Works perfectly. Thank you for uploading this video.

FractiveNR
Автор

great video, helped me a lot. i have a question though. Inside the directory where your new exe is, there are a number of other files. are these files required to make the exe work?

swamiwasabi
Автор

works perfectly for python 2.7!
love you so much

sylphy
Автор

Thank you for this video. Really well explained; That was a lot easier than I thought it would have been!

easterdeer
Автор

Thank you for this video, it took me a long time to find a useful tutorial but this was exactly what I needed.

fenryhisher
Автор

I just came here to say: Thank you very much! Really nice video. Thanks.

Fernando.Batista
Автор

You are a legend. Thanks for uploading!

Inventivepanzer
Автор

Good job! Still relevant up to this date. Python 2.7.6 with Pyglet 1.2alpha1.

NMCalabroso
Автор

Thanks, it worked for me. Running Python 3.3 on Windows 7.

the_ominous_one
Автор

Thank you very much, easy to understand and worked for me first time.

GPxGP
Автор

You have to verify the orthograph of all the words on the setup.py . And don't forget for the party " executables = the".py".

But first, verify the words (capital letter - no capital letter / space - no space ...)

ThuyDuyen
Автор

No frickin way, it works. Thanks a bunch!

DarrienGlasser
Автор

Hi. Just to inform you that it was my game error, not program error. In other words thank you! Now I can convert my projects to .exe files. :)

GeorgiGeorgievGT
Автор

great tutorial thanks, still works in python 3.3.3 and i automated the cmd process using batch

Quick tutorial for making the batch script if you don't know how:
make a new plain text file anywhere
type in all the commands you normally would to compile the script onto seperate lines for the separate commands
save as .bat or .cmd 

location of the batch script doesn't matter but i put it in the scripts folder so it's easy to find.

Here is my version:

cd

cd python33

c:\python33\python.exe setup.py build

Hope I helped!

yetiey
join shbcf.ru