What is pip and what is requirements.txt?

Python modules, packages and environments · Freshers

Model answer

pip installs Python packages from PyPI: pip install requests. requirements.txt lists the packages (and versions) a project needs so others can install them with pip install -r requirements.txt. Newer projects may use pyproject.toml with tools such as uv or Poetry.

Learn this topic

Modules, pip and Virtual Environments in Python in the course Python for Beginners: Learn to Code with Real Projects.

Sign in to add your own answer.

More questions