Search code examples
pythoncmdcommand-linecondaenvironment

Python script won't run from the command line. It shows no error


I'm trying to run a simple Python Script on the CMD but nothing happens when I run it. I get no errors or anything. The py script is just a simple print ("Hello World").

All my .py files are in the Python/Projects file.

http://puu.sh/FFfJm/ee63955506.png

Just some context regarding this: I did install Python then Pycharm then Anaconda. I don't know if that has anything to do with conflicting Python files.


Solution

  • python isn't in your path. Checkout Adding directory to PATH Environment Variable in Windows, which is a good reference to the question of adding a variable to the path in CMD.