Appendix B. Managing Python packages with pip

B.1 Installing pip on your computer

The popularity of Python is due mainly to its large collection of tools for various domains, data science, machine learning, web development, and so on. When I say “tools,” I mean modules, packages, libraries, and frameworks, which I differentiate in chapter 1. To use these tools, you must download them to your computer. The most widely adopted way to install these tools is pip—the official Python package management tool.

To centralize the management of Python packages, the Python Foundation created the Python Package Index (PyPI;, a repository of software for Python. One important thing to note is that the package in the PyPI is a different concept ...

Get Python How-To now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.