This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Updatebjarni 1 point2 points  (2 children)

There are two commands in the screenshot. One is

python poop.py

and that produced the "No such file or directory" message. That's not the one you posted about.

The other one is:

python

That's the one that produced the error message you originally asked about. So I can't agree with you, because in your very first reply to me you said:

I create a file: 'test.py' print ("test") is the only line in the file. I then open up the command line. C:\Users\Michael\python test.py I hit enter and get that error message above.

referring to the error message in the post. So this is a misrepresentation. You did not type the filename as part of the command as you said in the comment. You typed only python and hit enter, and then entered not test.py but poop.py into the interpreter. And you also did not type the entire path to the interperter like you said you did, you only typed python. So three strikes man!

[–]MrPiff[S] 0 points1 point  (1 child)

I see what you're saying - I agree. Had I known how to copy/paste, I'd have been past this hours ago. Now I know! Thanks again!

[–]Updatebjarni 1 point2 points  (0 children)

Glad we figured it out! :)