Check the version of an imported module at runtime.
Section: Dependency debugging
Print imported package version
bash
bash
python -c "import requests; print(requests.__version__)"Explanation
Confirms which version is actually importable in the active venv.
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