Interview Prep/Python for DevOps/Environments, imports & packaging errors

`cloudaudit: command not found` after `pip install --user .`.

BeginnerTroubleshootingEnvironments, imports & packaging errors
Answer

Likely causes → User installs put scripts in ~/.local/bin, which is not on PATH.

Diagnose →

python -m site --user-base     # scripts go in <base>/bin
ls ~/.local/bin; echo $PATH

Fix → Add export PATH="$HOME/.local/bin:$PATH" to the shell profile, or use pipx install ., which manages this (pipx ensurepath).

Prevent → Distribute CLIs with pipx/uv tool; document the PATH step.

All Python for DevOps questions Roadmap: Python for automation

More on Environments, imports & packaging errors