How to run installed python script? How to run installed python script? windows windows

How to run installed python script?


windows uses the extension of the file to determine how it will run.

Name your file plugh.py and use plugh.py on the prompt to call it.


  1. If you use ActivePython, it will already add the C:\PythonXY\Scripts directory to your %PATH% (ActivePython 2.6 additionally adds PEP 370's %APPDATA%\Python\Scripts to %PATH%) during the installation.

  2. For deploying scripts on Windows machine, better use Distribute which will take care of installing .exe wrappers for your scripts and invoking the actual Python with which your package was installed (to avoid conflict with multiple Python installations -- so naming your script to end .py is just not enough). For more on this topic, read about entry points in Distribute documentation.