Debug why imports resolve incorrectly.
Section: Runtime Inspection
Show import search path
python
python
import sys
for path in sys.path:
print(path)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 Runtime Inspection
Show the file backing an imported module
Confirm which module file was actually imported.
Inspect object type and attributes
Quickly see what an object is and what it exposes.
Inspect an object's __dict__
Show instance attributes stored on an object.