Go Back   Computer Forums > General Computing > Programming
Click Here to Login
Join Computer forums Today


Reply
 
Thread Tools Search this Thread Display Modes
 
Old 04-24-2008, 10:53 AM   #1
Solid State Member
 
Join Date: Aug 2005
Posts: 8
Default Convert python to executable

Been thinking of learning some sort of programming language abit better. At the moment i know the basics of C, C++, VBA and Java.
Have read some about Python and it looks like a very promising language for my needs. However, one question i still have about that i haven't found an answer for is if you can make stand alone executable files from the source code. Or does the one who wants to run the program also need python installed.
Closest i found was a program that can convert python source code to C++ source code that then can be compiled. But that also requires the python code to be written so it then is compatible to c++.

If python cant be made into executable without having to have python installed on the computer that's gonna run the program, then i think i will just go into depths of c++ and perhaps later learn python as you can use python scripts with c++.
__________________

ZeroX is offline   Reply With Quote
Old 04-24-2008, 01:21 PM   #2
Daemon Poster
 
wmorri's Avatar
 
Join Date: May 2007
Posts: 1,066
Send a message via AIM to wmorri
Default Re: Convert python to executable

Take a look at this page. I think it has what you are looking for.
http://www.ibm.com/developerworks/op...ry/os-python9/
__________________

__________________
LEARN BY DOING NOT BY FOLLOWING DIRECTIONS!
Linux Forever!

I thought you were a hispanic/african american? Who is the white guy in the pictures?
wmorri is offline   Reply With Quote
Old 04-24-2008, 03:03 PM   #3
Solid State Member
 
Join Date: Aug 2005
Posts: 8
Default Re: Convert python to executable

Almost. Thats under Linux, and most linux distros already have python installed. But the question involves windows, forgot to mention that in the post.
ZeroX is offline   Reply With Quote
Old 04-24-2008, 05:40 PM   #4
Site Team
 
David Lindon's Avatar
 
Join Date: Dec 2002
Posts: 15,233
Default Re: Convert python to executable

I think python in an interpreted language only which is a shame. So for a standalone exe it will have to be C++
__________________
[url=http://www.LNXPS.NET]LNXPS.NET - The XPS Library]
David Lindon is offline   Reply With Quote
Old 04-24-2008, 05:52 PM   #5
Guru
 
JogaBonito1502's Avatar
 
Join Date: Jan 2008
Location: U.S.
Posts: 7,841
Default Re: Convert python to executable

Just use an interpreter and send it to C++. It will work out just as well.
JogaBonito1502 is offline   Reply With Quote
Old 04-25-2008, 01:58 AM   #6
Solid State Member
 
Join Date: Aug 2005
Posts: 8
Default Re: Convert python to executable

Seems like i will just go into depths of c++ and then later go into python and use python scripts from c++, or something, havent decided yet.
What other languages are there that could be useful to know?
Action script is something i have also thought about, but think that will be more for fun than useful for me. As i will most likely need a programming language for sysadmin work, windows based mostly, but also some Linux.
__________________

ZeroX is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off



All times are GMT -5. The time now is 06:25 PM.


Powered by vBulletin® Version 3.8.8 Beta 4
Copyright ©2000 - 2017, vBulletin Solutions, Inc.
Search Engine Friendly URLs by vBSEO 3.6.0