mirror of https://github.com/astral-sh/uv
Update README.md to include venv activate (#1411)
This is just a small readme change to include venv activation. In case someone just follows the docs as-is, they will end up installing packages outside of the desired virtual env. --------- Co-authored-by: Zanie Blue <contact@zanie.dev>
This commit is contained in:
parent
1837641138
commit
8ef396e849
10
README.md
10
README.md
|
|
@ -53,6 +53,16 @@ To create a virtual environment:
|
||||||
uv venv # Create a virtual environment at .venv.
|
uv venv # Create a virtual environment at .venv.
|
||||||
```
|
```
|
||||||
|
|
||||||
|
To activate the virtual environment:
|
||||||
|
|
||||||
|
```shell
|
||||||
|
# On macOS and Linux.
|
||||||
|
source .venv/bin/activate
|
||||||
|
|
||||||
|
# On Windows.
|
||||||
|
.\.venv\Scripts\activate.ps1
|
||||||
|
```
|
||||||
|
|
||||||
To install a package into the virtual environment:
|
To install a package into the virtual environment:
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue