Show sys.path for the active environment.
Section: Dependency debugging
Print Python import path
bash
bash
python -c "import sys; print('\n'.join(sys.path))"Explanation
Useful when imports succeed or fail unexpectedly due to path order.
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
Print imported package version
Check the version of an imported module at runtime.
Show package install location
Display metadata and install location for a package.