Page 1 of 1
Python/C
Posted: Wed Jan 08, 2014 5:18 pm
by clanc789
Hey there coders,
I was wondering, can I 'convert' or 'complite' a pythong file (.py) to something that every computer can read/execute without having python installed? If so, please help me out
EDIT: Another question: how do I compile C files, since I have tried it with the 2013 express but it does not quite work for me.
Kind regards,
Max
Re: Python
Posted: Wed Jan 08, 2014 5:25 pm
by XTechVB
something that every computer can read/execute without having python installed
That's like running a vb or c# application on a computer without the .Net Framework. As far as i know that's impossible in both cases.
Re: Python
Posted: Wed Jan 08, 2014 5:28 pm
by clanc789
http://www.py2exe.org/index.cgi/Tutorial
This shows how to make a .exe of a .py file.
Ofcourse there are/will be limitations such as 'you need x.dll and y.dll' but tose DLLs are usually of the .NET Framework, which most PCs have.
EDIT: I forgot to tell that I cant get that one working on my PC, the py2exe.
Re: Python/C
Posted: Wed Jan 08, 2014 5:47 pm
by XTechVB
clanc789 wrote:http://www.py2exe.org/index.cgi/Tutorial
This shows how to make a .exe of a .py file.
Ofcourse there are/will be limitations such as 'you need x.dll and y.dll' but tose DLLs are usually of the .NET Framework, which most PCs have.
EDIT: I forgot to tell that I cant get that one working on my PC, the py2exe.
.NET Framework, which most PCs have.
NO they don't. The .Net Framework is an optional library which means you the user have to install it (usually it installs itself when you install Visual Studio). But since Windows 7 the .Net Framework comes with the Windows installation.
So if a user has Windows XP and never installed Visual Studio or just the .Net Framework library,
NO .net based application is gonna work no matter how you convert it.
Re: Python/C
Posted: Wed Jan 08, 2014 6:01 pm
by Shim
XTechVB wrote:clanc789 wrote:http://www.py2exe.org/index.cgi/Tutorial
This shows how to make a .exe of a .py file.
Ofcourse there are/will be limitations such as 'you need x.dll and y.dll' but tose DLLs are usually of the .NET Framework, which most PCs have.
EDIT: I forgot to tell that I cant get that one working on my PC, the py2exe.
.NET Framework, which most PCs have.
NO they don't. The .Net Framework is an optional library which means you the user have to install it (usually it installs itself when you install Visual Studio). But since Windows 7 the .Net Framework comes with the Windows installation.
So if a user has Windows XP and never installed Visual Studio or just the .Net Framework library, NO .net based application is gonna work no matter how you convert it.
When you install Windows 7 it doesn't come with the latest .Net Framework. I guest it comes with .Net 2.0.
Re: Python/C
Posted: Wed Jan 08, 2014 6:32 pm
by clanc789
Lets rephrase it: the computer I plan to use it on has .netframework and im not able to instal python, thus my question.
Re: Python/C
Posted: Wed Jan 08, 2014 6:57 pm
by XTechVB
Sorry #clanc789 we got a bit off track, here
THIS might be of some help.
Re: Python/C
Posted: Wed Jan 08, 2014 7:34 pm
by clanc789
No problem #XTechVB

I found out how to compile *.c files so that is solved now
As for your program suggestion: I tried that but I can not find how to install it correctly so that it works on windows 8.
Re: Python/C
Posted: Thu Jan 09, 2014 7:01 pm
by clanc789
Found the solution: make a wrapper for it

Re: Python/C
Posted: Thu Jan 09, 2014 7:28 pm
by XTechVB
clanc789 wrote:Found the solution: make a wrapper for it 
Well i guess that's the best solution. Even the .Net Framework is one massive wrapper around the original Windows libraries.