Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I have python 3.2 and 2.7 both installed.

When I tried to run filename.py, the command prompt opened for a second and disappeared, and nothing ran.

I also have a problem running from the idle for python. Maybe it is because of the environment variable? Or is it something else?

share|improve this question

1 Answer 1

First, do you have something like input("THE END") or os.system("pause") at the end of your script ? With this, the prompt should not dissapear and you may see what is wrong.

For your executable, you should avoid the problem by typing the full path for the Python interpreter you want to use :

MyPrompt> C:\Python32\python.exe filename.py
share|improve this answer
    
I can't even execute the helloworld.py , not to mention other complex programs. I can only execute them by opeing them from idle and pressing F5. –  Zack Sep 5 '12 at 1:06

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.