mirror of https://github.com/astral-sh/uv
Provide example of file based package install. (#1424)
Added example to install packages from a file w/o editable mode. I use `pip install .` in a number of CI/CD and build scripts - it wasn't obvious to me how to achieve this with uv as `uv pip install .` throws an error about package names being expected to start with an alphanumeric character. --------- Co-authored-by: Zanie Blue <contact@zanie.dev>
This commit is contained in:
parent
58bc069420
commit
63987e4f8f
|
|
@ -69,6 +69,7 @@ To install a package into the virtual environment:
|
|||
uv pip install flask # Install Flask.
|
||||
uv pip install -r requirements.txt # Install from a requirements.txt file.
|
||||
uv pip install -e . # Install the current project in editable mode.
|
||||
uv pip install "package @ ." # Install the current project from disk
|
||||
```
|
||||
|
||||
To generate a set of locked dependencies from an input file:
|
||||
|
|
|
|||
Loading…
Reference in New Issue