Adding Modules using the PyPPM
One of the great strengths of Python is the wealth of free modules that can be
used to extend the core Python distribution. ActivePython includes a package manager,
PyPPM, that makes it easy to browse, download and update Python modules from
module repositories on the internet. These modules are added to the core Python
distribution installed on your system when you install ActivePython.
In this step, we will install the Python module called "xmlrpclib ".
Note the xmlrpclib module is included with ActivePython
version 2.2. Only users of ActivePython 2.0 and 2.1 need to complete this step.
- Open the Run Command dialog box. Select Tools|Run Command.
- In the Run field, enter the command:
pyppm install xmlrpclib
- Click the Run button to run the command. PyPPM will connect with the default repository on
the ASPN network, download the necessary files, and make a record of the installation of the new package.
Top
- "
pyppm " is the command that runs ActivePython's Python
Package Manager. You can enter pyppm at the command prompt,
and then type help for a list of commands.
- PPM, by default, accesses the Python Package repository stored on
ASPN,
the ActiveState Programmer Network.
- More information about PyPPM is available on
ASPN.
PyPPM documentation is also included with your ActivePython distribution.
|