Which version of Python do I have installed? Which version of Python do I have installed? python python

Which version of Python do I have installed?


Python 2.5+:

python --version

Python 2.4-:

python -c 'import sys; print(sys.version)'


In a Python IDE, just copy and paste in the following code and run it (the version will come up in the output area):

import sysprint(sys.version)