~ubuntu-branches/ubuntu/karmic/python3.0/karmic

« back to all changes in this revision

Viewing changes to Doc/install/index.rst

  • Committer: Bazaar Package Importer
  • Author(s): Matthias Klose
  • Date: 2009-02-16 17:18:23 UTC
  • mfrom: (1.1.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20090216171823-1d5cm5qnnjvmnzzm
Tags: 3.0.1-0ubuntu1
New upstream version.

Show diffs side-by-side

added added

removed removed

Lines of Context:
3
3
.. _install-index:
4
4
 
5
5
*****************************
6
 
  Installing Python Modules  
 
6
  Installing Python Modules
7
7
*****************************
8
8
 
9
9
:Author: Greg Ward
18
18
   Thus, I have to be sure to explain the basics at some point:
19
19
   sys.path and PYTHONPATH at least.  Should probably give pointers to
20
20
   other docs on "import site", PYTHONSTARTUP, PYTHONHOME, etc.
21
 
   
 
21
 
22
22
   Finally, it might be useful to include all the material from my "Care
23
23
   and Feeding of a Python Installation" talk in here somewhere.  Yow!
24
24
 
268
268
statements shown below, and get the output as shown, to find out my
269
269
:file:`{prefix}` and :file:`{exec-prefix}`::
270
270
 
271
 
   Python 2.4 (#26, Aug  7 2004, 17:19:02) 
 
271
   Python 2.4 (#26, Aug  7 2004, 17:19:02)
272
272
   Type "help", "copyright", "credits" or "license" for more information.
273
273
   >>> import sys
274
274
   >>> sys.prefix
584
584
   $ python
585
585
   Python 2.2 (#11, Oct  3 2002, 13:31:27)
586
586
   [GCC 2.96 20000731 (Red Hat Linux 7.3 2.96-112)] on linux2
587
 
   Type ``help'', ``copyright'', ``credits'' or ``license'' for more information.
 
587
   Type "help", "copyright", "credits" or "license" for more information.
588
588
   >>> import sys
589
589
   >>> sys.path
590
 
   ['', '/usr/local/lib/python2.3', '/usr/local/lib/python2.3/plat-linux2', 
591
 
    '/usr/local/lib/python2.3/lib-tk', '/usr/local/lib/python2.3/lib-dynload', 
 
590
   ['', '/usr/local/lib/python2.3', '/usr/local/lib/python2.3/plat-linux2',
 
591
    '/usr/local/lib/python2.3/lib-tk', '/usr/local/lib/python2.3/lib-dynload',
592
592
    '/usr/local/lib/python2.3/site-packages']
593
593
   >>>
594
594