Python Tutorial

 

Table of Contents

Adding Modules using the PyPPM

What is the Python Package Manager?

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.

Running the Python Package Manager

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 do this step.

  1. Open a Command Prompt window (Windows) or shell window (Linux).
  2. Enter "pyppm install xmlrpclib". 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.

Things to note about using PyPPM

  • "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.

Top Home Next