Diagnose Shebang vs Venv Mismatch When a CLI tool fails with ModuleNotFoundError for packages that are installed in its venv, the entry point shebang may be pointing to system Python instead of the venv's Python. Check the shebang in or — it should reference the venv's Python ( ), not . Update the shebang directly or check if the tool's update process regenerates it with a generic shebang, requiring a permanent fix strategy. ---