[Tutor] (no subject)

Terry Carroll carroll at tjc.com
Fri Aug 8 20:48:28 EDT 2003


On Fri, 8 Aug 2003, Danny Yoo wrote:

> Welcome aboard!  Let's do a quick check to see if Python is already
> installed on your Linux system.  Try:
> 
>     $ which python
> 
> at your command prompt line, and tell us how your system responds to this.
> 
> If you have Python installed, then you're all set!  If you're running a
> Red Hat-based system, for example, since it comes installed by default,
> you shouldn't need to do anything else to install Python.

I'd also add a tip I picked up here; some Linuxes (Red Hat?) depend on
Python 1.5, so "python" may give you the old Python 1.5:

  % python
  Python 1.5.2 (#1, Jan 31 2003, 11:01:49)  [GCC 2.96 20000731 (Red 
  Hat Linux 7.22 on linux-i386
  Copyright 1991-1995 Stichting Mathematisch Centrum, Amsterdam
  >>>

Many of these sites install a more current version of Python as "python2":

  % python2
  Python 2.1.1 (#1, Feb 11 2003, 14:49:19)
  [GCC 2.96 20000731 (Red Hat Linux 7.2 2.96-108.7.2)] on linux2
  Type "copyright", "credits" or "license" for more information.
  >>>


-- 
Terry Carroll        |   "I say to you that the VCR is to the American
Santa Clara, CA      |   film producer and the American public as the 
carroll at tjc.com      |   Boston strangler is to the woman home alone."  
                     |       Jack Valenti, MPAA President
Modell delendus est  |       Testimony before Congress, 1982




More information about the Tutor mailing list