title: Is there a way to execute .py scripts from path in windows?
body: <p>I would like to use a python script anywhere within command prompt. This is possible in unix, but I couldn't find anything for windows. Do I have to convert it to .exe?</p>
  
  <p>Edit: not sure why this is being downvoted, maybe it's a silly question but I can't find any similar threads here and I can't be the first person to want to execute .py scripts from their path...</p>
  
  <p>Edit 2: I think my wording was unclear. I would like to know a method to execute python scripts in Windows without needing to specify <code>python path/to/script.py</code> every time. Here is a solution on Linux where the shebang statement invokes the python interpreter, and the script in question can be easily placed in bin: <a href="https://stackoverflow.com/questions/6967331/how-do-i-install-a-script-to-run-anywhere-from-the-command-line">How do I install a script to run anywhere from the command line?</a> . Does there exist a solution like this for Windows?</p>