2024-07-25 13:37:22 -04:00
|
|
|
# The pip interface
|
|
|
|
|
|
2024-07-30 18:17:58 -04:00
|
|
|
uv provides a drop-in replacement for common `pip`, `pip-tools`, and `virtualenv` commands. These
|
|
|
|
|
commands work directly with the virtual environment, in contrast to uv's primary interfaces where
|
|
|
|
|
the virtual environment is managed automatically. The `uv pip` interface exposes the speed and
|
|
|
|
|
functionality of uv to power users and projects that are not ready to transition away from `pip` and
|
|
|
|
|
`pip-tools`.
|
2024-07-25 13:37:22 -04:00
|
|
|
|
|
|
|
|
The following sections discuss the basics of using `uv pip`:
|
|
|
|
|
|
|
|
|
|
- [Creating and using environments](./environments.md)
|
|
|
|
|
- [Installing and managing packages](./packages.md)
|
|
|
|
|
- [Inspecting environments and packages](./inspection.md)
|
|
|
|
|
- [Declaring package dependencies](./dependencies.md)
|
|
|
|
|
- [Locking and syncing environments](./compile.md)
|
|
|
|
|
|
2024-07-30 18:17:58 -04:00
|
|
|
Please note these commands do not _exactly_ implement the interfaces and behavior of the tools they
|
|
|
|
|
are based on. The further you stray from common workflows, the more likely you are to encounter
|
|
|
|
|
differences. Consult the [pip-compatibility guide](./compatibility.md) for details.
|
2024-08-08 17:01:08 -05:00
|
|
|
|
|
|
|
|
!!! important
|
|
|
|
|
|
|
|
|
|
uv does not rely on or invoke pip. The pip interface is named as such to highlight its dedicated
|
|
|
|
|
purpose of providing low-level commands that match pip's interface and to separate it from the
|
|
|
|
|
rest of uv's commands which operate at a higher level of abstraction.
|