Welcome to HBH! If you have tried to register and didn't get a verification email, please using the following link to resend the verification email.

Python Compiler?


ghost's Avatar
0 0

Does anyone know of an easy to use Python compiler so i can run my Python files on other computers that dont have the python module installed? Please if your going to reccomend py2.exe dont unless you have a guide on how to use it!


ghost's Avatar
0 0

Guess what, I recommend py2exe.

Hehe I don't have a guide on how to use it though.

If you tell me where you're stuck I'll help.

I was having trouble with py2exe aswell, it is very, very frustrating.

DarkPanther


ghost's Avatar
0 0

thanks mate ive been stuck on it for a while and i found a guide but it didnt help me at all especially when it is about as specific as saying" run your thingy through py2"


ghost's Avatar
0 0

Okay, did you get to the point of making setup.py ? (I got very confused here as all the different guides have a different story on this)

DarkPanther


ghost's Avatar
0 0

thought there was something like idle python… i had it…i could run python on the fly with it :ninja:

peace.


reaper4334's Avatar
Member
0 0

Yes, there is IDLE or whatever it's called but thats WITH Python installed. To run a Python program on a computer without Python installed you do need to do something like py2exe.

-Reaper4334-


ghost's Avatar
0 0

Yes, to use py2exe, make a file called setup.py with the following contents:

import py2exe

setup(console = ["helloworld.py"])```

Obviously replacing helloworld.py with the name of your Python file.
Also if your program is Python with no console (.pyw) replace "console" with "windows"

Okay, save the setup file (must be in the same folder as the python file you are making an exe from) . Open command prompt, change to the directory where you saved setup.py and type:

```markupC:\yourdir\python25\python.exe setup.py py2exe```

Obviously replacing "yourdir" with the directory in which you have Python installed E.G for me: C:\python25\python.exe
Also if you have Python 2.4 change "python25" to "python24" and such.

Your command prompt should go through a list of writing, then if you check the folder where setup.py is, you should find a folder called "dist".
Open it and you should there find your exe.

Hope this helped :)

~DarkPanther~

ghost's Avatar
0 0

THANKS SO MUCH!!!!!!!!!!! Ive had so many programs that i could not compile for ages! You have just made my day. Can u add me darkpanther i just wanna add some more hackers/python programmers cause i cant talk too too many peoples about it cause they only wanna talk C++ lil_bro_92@hotmail.com