What version of python is running a script

  • Thread starter =?iso-8859-1?Q?Fernando=20Rodr=edguez?=
  • Start date
?

=?iso-8859-1?Q?Fernando=20Rodr=edguez?=

Hi,

How can my script tell which version of python is running it?

Thanks
 
J

Juho Schultz

Fernando said:
Hi,

How can my script tell which version of python is running it?

Thanks

import sys
# examine these variables
sys.version_info
sys.version
 
C

Cameron Laird

Hi,

How can my script tell which version of python is running it?
.
.
.
$ python
Python 2.3.5 (#2, Aug 30 2005, 15:50:26)
[GCC 4.0.2 20050821 (prerelease) (Debian 4.0.1-6)] on linux2
Type "help", "copyright", "credits" or "license" for more information. 2.3.5 (#2, Aug 30 2005, 15:50:26)
[GCC 4.0.2 20050821 (prerelease) (Debian 4.0.1-6)]

'Does that make it clear?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,744
Messages
2,569,482
Members
44,900
Latest member
Nell636132

Latest Threads

Top