python version

Trond Eivind Glomsrød teg at redhat.com
Fri Sep 21 13:55:41 EDT 2001


bobnotbob at byu.edu (Bob Roberts) writes:

> How can a python program find out what version of python it is running?

python -c 'import sys;print(sys.version[0:3])'

does it from the commandline. 
-- 
Trond Eivind Glomsrød
Red Hat, Inc.



More information about the Python-list mailing list