Wednesday, January 1, 2014

Check Python version

To check install Python version in command line, run python with "-V" option:
python -V
python3 -V
pypy -V

To check running python version in python code:
import sys
print(sys.version)

Check Python version
Check Python version

No comments: