Pip
pip is Python’s standard package installer, a command-line tool for installing and managing Python packages and their dependencies.
Learn AI-Assisted Python Programming, Second Edition
pip is Python's package installer for downloading and installing software packages and their dependencies.
- How it is used
- Installs Python libraries and resolves compatibility problems by selecting an earlier package version.
- How deep it goes
- Demonstrates basic installation, version constraints, output checking, and switching libraries, but not pip internals.
- Examples
- Uses PyPDF2 versions 3.0.1 and 2.12.1, plus PyMuPDF, to repair a PDF-cover automation program.
- What you can do after
- Apply it via pip to install a library, constrain its version, inspect installation output, or replace it with an alternative.
Read how Learn AI-Assisted Python Programming, Second Edition explains pip →
Software Engineering for Data Scientists
pip is the standard package installer for Python.
- How it is used
- Installs Python libraries for web applications and package-building workflows.
- How deep it goes
- Demonstrates installation and upgrading, then uses installed tools in a packaging workflow.
- Examples
- Uses pip install flask, pip install --upgrade build, and pip install twine.
- What you can do after
- Operate Python dependencies by installing Flask and packaging tools from the command line.
Read how Software Engineering for Data Scientists explains pip →
Fast by Default
pip is Python's package installer and dependency-management tool.
- How it is used
- Uses pip to audit Python dependencies, separate development packages, and reduce production build size.
- How deep it goes
- Explains dependency auditing, version pinning, production categorization, and wheel-size checks, but stops short of pip internals.
- Examples
- Demonstrates pipreqs analysis on a checkout API and compares Python-only packages with compiled-extension wheels.
- What you can do after
- Diagnose unused Python dependencies with pipreqs and maintain smaller, version-pinned production environments with pip-tools.
Road to Kubernetes
pip is the standard package installer and dependency-management tool for Python.
- How it is used
- Installs Python application dependencies within isolated project environments during development and manual deployment.
- How deep it goes
- Demonstrates commands, virtual-environment selection, and requirements files, while deferring complex version constraints and Git repositories.
- Examples
- Uses FastAPI installation and a requirements.txt listing FastAPI, Jinja2, Uvicorn, and Gunicorn.
- What you can do after
- Apply pip to install individual packages or reproduce a project dependency set from requirements.txt.
Build a Reasoning Model (From Scratch)
Python’s package installer used to install packages from a terminal.
- How it is used
- Installs Python libraries needed to run a project’s examples and development environment.
- How deep it goes
- Demonstrates file-based and direct package installation, but defers environment isolation and detailed platform-specific configuration to uv or PyTorch guidance.
- Examples
- Uses requirements.txt, a remote requirements file, and direct installation of PyTorch, tokenizers, and reasoning-from-scratch.
- What you can do after
- Operate/configure a Python environment by installing project dependencies from a file or package list.
Read how Build a Reasoning Model (From Scratch) explains pip →
Also covered in
- The Quick Python Book, Fourth Edition
- ScyllaDB in Action
- Python How-To
- Data Analysis with LLMs
- Hugging Face in Action
- Refactoring to Rust
- Build Applications with Local AI Models on a Mac
- Build Python Web Apps with Streamlit
What to know first
- PythonPython is a high-level, general-purpose, dynamically typed programming language with readable syntax and support for multiple programming paradigms.
- packageA software package is a named unit that groups related software components, either for organization and compilation or for distribution and reuse.
- virtual environmentA Python virtual environment is an isolated runtime and package-installation context for managing project-specific dependencies separately from other environments and system packages.
- web applicationA web application is software that provides functionality through web technologies and is accessed over a network, typically through a browser or other web client.
Related concepts
- packageuses · A software package is a named unit that groups related software components, either for organization and compilation or for distribution and reuse.
- PyPIuses · PyPI, the Python Package Index, is the public repository and distribution service for Python software packages.
- Streamlituses · Streamlit is an open-source Python framework for building interactive web applications, particularly for data and machine-learning applications.
- uvalternative to · uv is a fast Python package and project manager for managing dependencies, environments, and Python-related workflows.
Questions about pip
What is pip?
pip is Python’s standard package installer, a command-line tool for installing and managing Python packages and their dependencies.
Which Manning books explain pip?
Learn AI-Assisted Python Programming, Second Edition, Software Engineering for Data Scientists, Fast by Default, Road to Kubernetes and Build a Reasoning Model (From Scratch).
What should I know before learning pip?
Manning books that teach pip usually introduce Python, package, virtual environment and web application first.
What is the difference between pip and uv?
pip is Python’s standard package installer, a command-line tool for installing and managing Python packages and their dependencies. uv is a fast Python package and project manager for managing dependencies, environments, and Python-related workflows.
What is pip also called?
Pip is also called pip3.
These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.




