How do I find out what Python libraries are installed on my Mac?

python

Solution

For the web server, you can run the `pydoc` module that is included in the python distribution as a script:

python /path/to/pydoc.py -p 1234

where `1234` is the port you want the server to run at. You can then visit `http://localhost:1234/` and browse the documentation.

Problem

I'm just starting out with Python, and have found out that I can import various libraries. How do I find out what libraries exist on my Mac that I can import? How do I find out what functions they include? I seem to remember using some web server type thing to browse through local help files, but I may have imagined that!

Original source