doctor
Check scoop installation health and diagnose issues.
Usage
scoop doctor [options]
Options
| Option | Description |
|---|---|
-v, --verbose | Show more details (can repeat: -vv) |
--json | Output diagnostics as JSON |
--fix | Auto-fix issues where possible |
Checks Performed
| Check | What it verifies |
|---|---|
| uv installation | uv is installed and accessible |
| Shell integration | Shell hook is properly configured |
| Environment integrity | Python symlinks are valid, pyvenv.cfg exists |
| Path configuration | ~/.scoop/ directory structure is correct |
| Version file validity | .scoop-version files reference existing environments |
Examples
scoop doctor # Quick health check
scoop doctor -v # Verbose diagnostics
scoop doctor --fix # Fix what can be fixed
scoop doctor --json # JSON output for scripting
Environment Integrity
The doctor checks each virtual environment for:
- Python symlink — Does the
pythonbinary in the environment point to a valid Python installation? - pyvenv.cfg — Does the environment’s configuration file exist and reference a valid Python?
Environments can become broken when their underlying Python version is uninstalled. Use scoop doctor to detect these issues:
# After accidentally uninstalling Python 3.12:
scoop doctor -v
# Output:
# ✓ uv: installed (0.5.x)
# ✓ Shell: zsh integration active
# ⚠ Environment 'myproject': Python symlink broken
# ⚠ Environment 'webapp': Python symlink broken
# Auto-fix by recreating symlinks (requires Python to be reinstalled)
scoop install 3.12
scoop doctor --fix
# Output:
# ✓ Fixed 'myproject': Python symlink restored
# ✓ Fixed 'webapp': Python symlink restored
Tip: Run
scoop doctorperiodically or after uninstalling Python versions to catch broken environments early. See uninstall command for the safe uninstall workflow.