theCAT
  
Report a Problem:
Email: support@cat.pdx.edu
Phone: 503-725-5420
  USERS PLATFORMS SYSTEM RESOURCES    
Home Students Fac/Staff CS Tutors Guidelines Windows Linux Unix Mac Mail Network Software Web TheCAT Sitemap
arrowHome arrow Linux arrow Python Versions Wednesday, 19 November 2008  
Linux
Python Interpreter Version Print
Contributed by herbertj   
Friday, 23 September 2005
In the CS Linux Lab and on linux.cecs.pdx.edu there are  multiple versions
of python currently installed.

In order to use python 2.3 you can run
        /usr/bin/python
        -or-
        /usr/bin/python2.3


       [herbie@mj /usr/bin]$ python
       Python 2.3.5 (#1, Aug 25 2005, 09:17:44)

       [herbie@mj i/usr/bin]$ python2.3
       Python 2.3.5 (#1, Aug 25 2005, 09:17:44)


To use python 2.4 run
        /usr/bin/python2.4

       [herbie@mj /usr/bin]$ python2.4
       Python 2.4.1 (#1, Sep 16 2005, 04:35:20)
 
 
 
In python scripts you can also select which version of python to use:
 
For python2.3 use:
 
       #!/usr/bin/env python
        -or-
        #!/usr/bin/env python2.3
 
For python2.4 use:
 
       #!/usr/bin/env python2.4
 
Last Updated ( Friday, 23 September 2005 )
VLSI Lab - FAB 60-19
VLSI Lab - FAB 60-19
Upcoming Events
There are no upcoming events currently scheduled.
View Full Calendar

©1999 - 2008 TheCAT