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 richrich 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 packagepip 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.
- Install the
richpackage with pip. - Run
pip show richto see package details. - Run
pip listto see all installed packages.
Interactive Code Editor
Sign in to write and run code, track your progress, and unlock all chapters.
Sign In to Start Coding