Python can't open myscript.py -


i trying run python program cmd, have run problem. when type myscript.py gives error message:

python: can't open file myscript.py:[errno 2] no such file or directory

help appreciated.

thank you

you aren't in same directory. use cd command switch directories. can type cd no arguments print present working directory. once in same directory, can run python program. alternatively, can run python full path script.


Comments

Popular posts from this blog

android - java.net.UnknownHostException(Unable to resolve host “URL”: No address associated with hostname) -

jquery - How can I dynamically add a browser tab? -

keyboard - C++ GetAsyncKeyState alternative -