Lazo Lab Sign up

Python Projects & Skills / Working like a pro

Lesson 2 of 28

pip and packages

pip installs packages from PyPI, Python's package library. Save your project's packages in requirements.txt so anyone can install them with one command.

Key points

  • pip install name
  • pip freeze > requirements.txt
  • pip install -r requirements.txt
pip install -r requirements.txt
Watch a video on thisOpens YouTube search results for “pip and packages” in a new tab

Quiz · +10 XP

Which file usually lists a project's packages?

Log in to save progress and earn XP.