Print the active site-packages directories.
Section: Inspect the environment
Show site-packages paths
bash
bash
python -c "import site; print(site.getsitepackages())"Explanation
Useful when debugging where packages are actually installed.
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 Inspect the environment
List installed packages
Show packages currently installed in the environment.
Show active Python version
Print the Python version from the current environment.
Show interpreter executable path
Print the executable path for the active interpreter.
Show sys.prefix and sys.base_prefix
Confirm whether you are inside a venv.