pip list
pip commands that report what is installed: list shows every package and version, show gives details of one, and freeze prints pinned name==version lines.
In more detail
pip show requests tells you its version, location and which packages it requires and which require it. pip freeze > requirements.txt records the exact environment.
Related terms
- pip — Python's standard package installer, which downloads packages from the Python Package Index and installs them.
- requirements file — A text file, usually requirements.txt, listing the packages a project needs, one per line, often pinned to exact versions.
- pinning — Fixing an exact version or digest of something you depend on so it cannot change without you noticing.
Taught in
- pip, requirements, and installing packages — Hands-on Python: Complete Video Course & Book