Which version of Python do I have installed?

Ali_IT picture Ali_IT · Jan 18, 2012 · Viewed 1.3M times · Source

I have to run a Python script on a Windows server. How can I know which version of Python I have, and does it even really matter?

I was thinking of updating to the latest version of Python.

Answer

theglauber picture theglauber · Jan 18, 2012
python -V

http://docs.python.org/using/cmdline.html#generic-options

--version may also work (introduced in version 2.5)