uv pip uninstall removes packages from the active Python environment. It is compatible with pip uninstall but offers faster performance.
Usage
Arguments
Names of packages to uninstall.
Uninstall packages listed in requirements files.Supported formats:
requirements.txt.pyfiles with inline metadatapylock.tomlpyproject.toml,setup.py,setup.cfg
Python Environment
Python interpreter from which to uninstall packages.By default, uninstalls from virtual environment. Use with caution for system Python.Environment:
UV_PYTHON--system
Uninstall from system Python instead of virtual environment.Environment:
UV_SYSTEM_PYTHON--break-system-packages
Allow uninstallation from externally-managed Python environments.Environment:
UV_BREAK_SYSTEM_PACKAGESUninstall packages from a
--target directory.Uninstall packages from a
--prefix directory.Behavior Options
--dry-run
Show what would be uninstalled without actually removing packages.
Keyring provider for authentication (for remote requirements files):
disabled, subprocess.Default: disabledEnvironment: UV_KEYRING_PROVIDERExamples
Basic Uninstallation
From Requirements File
Specific Environment
Dry Run
Use Cases
Remove Unwanted Packages
Clean Development Environment
Fix Broken Installation
Downgrade Package
Verify Before Uninstall
Differences from pip uninstall
uv pip uninstall is largely compatible with pip uninstall:
Key Differences
- Performance: uv is faster
- Confirmation: uv does not prompt for confirmation (use
--dry-runfirst) - Default behavior: uv requires virtual environment by default
- Dependency handling: Both only remove specified packages, not their dependencies
No Confirmation Prompt
Unlike pip, uv does not ask for confirmation:Migration from pip
Handling Dependencies
uv pip uninstall only removes specified packages, not their dependencies:
Remove Package and Dependencies
To remove orphaned dependencies:What Gets Uninstalled
Regular Packages
Editable Packages
Scripts and Entry Points
Exit Codes
Safety Considerations
Check Dependencies First
Use Dry Run
Avoid System Python
Related Commands
uv pip install- Install packagesuv pip sync- Sync environment (removes extraneous packages)uv pip list- List installed packagesuv pip show- Show package detailsuv pip freeze- Output installed packages