Jasper RGH
Verified Hoster
As most of you know, you cant make a .py into a .exe with out py2exe program, but most people dont know how too use py2exe.
What you will need!
A .py that you would like to turn into a .exe
py2exe DownloadHere
And another .py file. [Dont edit it just save it too your desktop! name it HF.py]
First Step!
Get a program that you would like to turn into a .exe
I will just use a little program it should look like this!
Code:
print "Hello World!!!"
raw_input("press <enter> to exit!")
Now once you have your program save it too your desktop (remember what you save it as!)
Step Two!
Download py2exe Download http://www.py2exe.org/
install it!
Your done with Step Two..
Step Three!
Make a new .py file
and put this as it's content but replace "Hello World" with whatever you named your program as IMPORTANT make sure you put .py at the end!! very important!
Code:
from distutils.core import setup
import py2exe
setup(console=['Hello.py'])
Save This too your desktop. Just for the TuT's sake name it "HF.py" make sure you save it too your desktop!
Step Four!
Open up CMD.
when the box comes up, type "cd desktop"
Then type "HF.py py2exe"
Then a **** TON of info will pop up in the box.
When it is done you should have Two Folders on your desktop named "dist" and "build"
Open up the "dist" folder and your program should be in there! now just compress that into a .rar and upload your program too the web
/TuT
What you will need!
A .py that you would like to turn into a .exe
py2exe DownloadHere
And another .py file. [Dont edit it just save it too your desktop! name it HF.py]
First Step!
Get a program that you would like to turn into a .exe
I will just use a little program it should look like this!
Code:
print "Hello World!!!"
raw_input("press <enter> to exit!")
Now once you have your program save it too your desktop (remember what you save it as!)
Step Two!
Download py2exe Download http://www.py2exe.org/
install it!
Your done with Step Two..
Step Three!
Make a new .py file
and put this as it's content but replace "Hello World" with whatever you named your program as IMPORTANT make sure you put .py at the end!! very important!
Code:
from distutils.core import setup
import py2exe
setup(console=['Hello.py'])
Save This too your desktop. Just for the TuT's sake name it "HF.py" make sure you save it too your desktop!
Step Four!
Open up CMD.
when the box comes up, type "cd desktop"
Then type "HF.py py2exe"
Then a **** TON of info will pop up in the box.
When it is done you should have Two Folders on your desktop named "dist" and "build"
Open up the "dist" folder and your program should be in there! now just compress that into a .rar and upload your program too the web
/TuT