.py (python)
okay, ive finished writing my game.
I saved it as a .py file.
Then i send the file to a friend to test it out.
My friend said he cant open it.
I know why, he does not have pythoin in his comp, so he cant open .py files
How do i save it?
i tried as a .exe, but an error occurs.
I believe it's because python is a so-called 'scripting' language. That is, something that isn't compiled. Much like html requires a browser to use, so does python require a program to run the source... unless they have another program like 'py2exe'
Quote:Original post by nobodynewsThat makes it an interpreted language. It is not simply a "scripting" language.
I believe it's because python is a so-called 'scripting' language. That is, something that isn't compiled.
Quote:Original post by nobodynewspy2exe simply wraps python with your source so that's its transparent to the user, it doesn't do anything magic (just to clarify).
Much like html requires a browser to use, so does python require a program to run the source... unless they have another program like 'py2exe'
Well, it wont really matter for him to download Python, as the main purpose of this is to present it in a science fair (they unfortunatly chose me to give a presentation) and I need the file to work in any computer. Basically, I have the code in C++ and Python, and I compare the two. However, C++ compiles the whole code, allowing me to use it in other computers (correct me if im wrong). But for Python, since its an interpreted language, I cant bring the code without Python itself. Ive tried using the py2exe, but im not really sure how to work it. I would read the instructions, but its confusing and I dont have the time to read it thoroughly. Can anyone help me? I just need the code to work in other computers, whether it has Python or not.
(note* I dont have time doesnt mean Im lazy, it means that my presentation is in 1 day...yikes!)
(note* I dont have time doesnt mean Im lazy, it means that my presentation is in 1 day...yikes!)
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement