Member_2_7966113
asked on
Trying to run a Python File
Hello Experts,
I'm trying to run the attached python file. I have no clue about Python. I installed the Windows release 3.6 of Python and when I try use the Python application to open the file I get the following output:
I'm not sure what to do with the information.
Also when I try to execute the python file in windows I get the following output:
Can someone let me know how to execute this file?
Cheers
Carlton
keygen.py
I'm trying to run the attached python file. I have no clue about Python. I installed the Windows release 3.6 of Python and when I try use the Python application to open the file I get the following output:
I'm not sure what to do with the information.
Also when I try to execute the python file in windows I get the following output:
Can someone let me know how to execute this file?
Cheers
Carlton
keygen.py
The file is Python 2.7 not 3.0
Print ("hello world") instead of print "hello world"
Do as it says
You should also install Python 2.7 and remove 3
Python 3 is not as mainstream as 2.7
Print ("hello world") instead of print "hello world"
Do as it says
You should also install Python 2.7 and remove 3
Python 3 is not as mainstream as 2.7
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Hi Calton
How did you go. If your problem is resolved please take the time to mark the comments that helped you resolve your question.
Cheers
How did you go. If your problem is resolved please take the time to mark the comments that helped you resolve your question.
Cheers
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
It is correct, he may have found an answer, but that's for a problem that came AFTER the original problem. Technically, it doesn't make any sense indeed.
ASKER
Much obliged to you both.
Python3 syntax changed it to:
print("Hello world!")
Either install Python 2, or adjust your script manually to correct all print commands (could be some other commands besides print might need adjustments as well)