Installing third-party Python modules
We'll make a distinction between modules which are included as part of Python's standard library and modules which must be installed. To install libraries, you either get them from the Python Package Index (PyPI) or in the case of a lot of geospatial modules, you download a specialized installer. PyPI acts as the official software repository for libraries and offers some easy-to-use setup programs which simplify installing packages. You can use the easy_install
program which is especially good on Windows or the pip
program more commonly found on Linux and Unix systems. Once installed, you can install third-party packages simply by running:
easy_install <package name>
Or for pip
you run:
pip install <package name>
Links will be provided to installers and instructions for packages not available on PyPI. You can manually install third-party Python modules by downloading the Python source code and putting it in your current working directory...