Installing Packages
Exit

Installing Packages

Install, inspect, and manage packages with pip

💻

Writing code and entering commands is only available on desktop. Open this page on a larger screen to complete this chapter.

Installing your first package

The pip install command downloads a package from PyPI and makes it available in your Python environment. You run it from the terminal — not inside a Python file.

pip install rich

rich is a library for creating colorful terminal output — formatted text, tables, progress bars, and more. You will use it in this lesson's mini project.

Inspecting installed packages

After installing, you can check what pip installed:

  • pip show rich — displays the version, author, summary, and dependencies of a specific package
  • pip list — shows every package installed in your environment

pip show is useful when you need to check which version you have or what other packages a library depends on.

Instructions

Run each command in your terminal.

  1. Install the rich package with pip.
  2. Run pip show rich to see package details.
  3. Run pip list to see all installed packages.