- To install any of the ZIP files, create and change into a
directory, say "C:\Python", and unzip the archive. This
will create a directory structure rooted at C:\Python
similar to:
- C:\Python\Add-Ons\
- C:\Python\Demo\
- C:\Python\html\
- C:\Python\lib\lib-dynload\
- C:\Python\lib\site-packages\
- C:\Python\Misc\
- C:\Python\PC\os2vacpp\
- C:\Python\Tools\
- C:\Python\Python.exe
- C:\Python\Python15.dll
All of the ZIP files overlay such a directory
structure.
- Edit your config.sys to add C:\Python to your PATH and
LIBPATH, and define the environment variables:
- Set PYTHONHOME=C:\Python
- Set PYTHONPATH=.;C:\Python\Lib;C:\Python\Lib\plat-win;C:\Python\Lib\dos-8x3
- Reboot and you should now be able to perform the following
at a prompt:
C> python
Python 1.5.2 (#0, Jun 27 1999, 11:23:01) [VisualAge C/C++] on os2
Copyright 1991-1995 Stichting Mathematisch Centrum, Amsterdam
>>> print "Hello from Python"
Hello from Python
>>> Control-C
C>
- For your convenience I've provided the manuals with the
release, in HTML format. They are readily available in
other formats from
www.python.org To read the ones I've included, just
point your browser to the local file
C:\Python\html\index.html or wherever you installed
Python.
|