list
List all virtual environments or installed Python versions.
Aliases: ls
Usage
scoop list [options]
Options
| Option | Description |
|---|---|
--pythons | Show Python versions instead of virtualenvs |
--python-version <VERSION> | Filter environments by Python version (e.g., 3.12) |
--bare | Output names only (for scripting) |
--json | Output as JSON |
Examples
scoop list # List all virtualenvs
scoop list --pythons # List installed Python versions
scoop list --bare # Names only, one per line
scoop list --json # JSON output
# Filter by Python version
scoop list --python-version 3.12 # Show only 3.12.x environments
scoop list --python-version 3 # Show all Python 3.x environments
scoop list --python-version 3.12.1 # Exact version match
List Python Versions with Associated Environments
Use this workflow to see both sides of the mapping:
# 1) List installed Python versions managed by scoop/uv
scoop list --pythons
# 2) List all virtual environments with their Python versions
scoop list
# 3) Show environments associated with a specific Python version
scoop list --python-version 3.12
For scripting, combine --bare with per-version filtering:
for v in $(scoop list --pythons --bare); do
echo "== Python $v =="
scoop list --python-version "$v" --bare
done
You can also use --json for machine-readable output:
scoop list --pythons --json
scoop list --json
Version Filtering
The --python-version option uses prefix matching to filter environments:
scoop list --python-version 3.12
# Output:
# myproject 3.12.1
# webapp 3.12.0
# (environments using 3.11 or 3.13 are not shown)
This is useful for identifying environments before uninstalling a Python version:
# See which environments will be affected
scoop list --python-version 3.12
# Then uninstall with cascade
scoop uninstall 3.12 --cascade
Note:
--python-versioncannot be combined with--pythons(which lists Python installations, not environments).
Empty Results
- If no Python versions are installed,
scoop list --pythonsshows no entries. - If no environments exist,
scoop listshows no entries. - If no environments match a filter,
scoop list --python-version <VERSION>shows no entries.