Search code examples
pythoncommand-line

python filename.py in command line does not work


temp.py is a simply python scipt prints "hello". This is a simple example. None of my other scripts are running.

For example, something like python code.py arg1 arg2 does not work.

What are the possible reasons and solutions?

enter image description here

EDIT: After following advice from comments, I think it works now.

enter image description here


Solution

  • type "python" in cmd and enter. If you don't enter into the python command line then you don't set the environment variables and your system does not see the python path.