How to run a script on Windows XP

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • funso
    New Member
    • Jun 2012
    • 3

    How to run a script on Windows XP

    I am just starting out. When I put this statement: "Hello World!" into a script and ran it on d terminal, this was what I got:
    C:Python27\pyth on.exe: can't find '-main-' module in 'hello.py', instead of giving me the content of the folder named hello.py. What could be the problem?
  • WooDoo
    New Member
    • Jun 2012
    • 6

    #2
    Have you added a Environment Variable for python in windows and it is pointing to your python.exe?

    Comment

    • funso
      New Member
      • Jun 2012
      • 3

      #3
      Re: how to run a script

      Originally posted by WooDoo
      Have you added a Environment Variable for python in windows and it is pointing to your python.exe?
      Yes I've done that. In actual fact, I can do some other things like using the built-in commands.

      Comment

      • WooDoo
        New Member
        • Jun 2012
        • 6

        #4
        Can you run the script in IDE?

        Comment

        Working...