Python venv + pip Cheat Sheet/Show package install location

Display metadata and install location for a package.

Section: Dependency debugging

Show package install location

bash
bash
python -m pip show urllib3
Explanation

Use this to confirm whether a package is installed in the active venv versus a base interpreter.

Learn the surrounding workflow

Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.

Related commands

Same sheet · prioritizing Dependency debugging
List outdated packages
Show packages with newer available versions.
OpenIn sheetbashsame section
Show pip debug info
Print pip environment diagnostics.
OpenIn sheetbashsame section
Print Python import path
Show sys.path for the active environment.
OpenIn sheetbashsame section
Print imported package version
Check the version of an imported module at runtime.
OpenIn sheetbashsame section
Install a requirements file
Install project dependencies from requirements.txt.
OpenIn sheetbash1 tag match
Editable install of current project
Install the current project in editable mode.
OpenIn sheetbash1 tag match