Standardize examples and error messages with uv CLI for virtual env. and dependency installation (#2129)

This commit is contained in:
Jirka Borovec authored and GitHub committed 2026-02-03 13:59:35 +01:00
1 parent c592cd9ff3
commit d925cdf666
7 files changed
+21 -22

No files matched your search

+3 -3
View File
@@ -24,14 +24,14 @@ https://github.com/roboflow/supervision/assets/26109316/f84db7b5-79e2-4142-a1da-
- setup python environment and activate it [optional]
```bash
python3 -m venv venv
source venv/bin/activate
uv venv
source .venv/bin/activate
```
- install required dependencies
```bash
pip install -r requirements.txt
uv pip install -r requirements.txt
```
- download `traffic_analysis.pt` and `traffic_analysis.mov` files
+3 -3
View File
@@ -18,14 +18,14 @@ supervision package for multiple tasks such as drawing heatmap annotations, trac
- setup python environment and activate it [optional]
```bash
python3 -m venv venv
source venv/bin/activate
uv venv
source .venv/bin/activate
```
- install required dependencies
```bash
pip install -r requirements.txt
uv pip install -r requirements.txt
```
## 🛠️ script arguments
+4 -4
View File
@@ -29,20 +29,20 @@ https://github.com/roboflow/supervision/assets/26109316/d50118c1-2ae4-458d-915a-
- setup python environment and activate it [optional]
```bash
python3.10 -m venv venv
source venv/bin/activate
uv venv
source .venv/bin/activate
```
- install required dependencies
```bash
pip install -r requirements.txt
uv pip install -r requirements.txt
```
- download `vehicles.mp4` file
```bash
python3.10 video_downloader.py
python video_downloader.py
```
## 🛠️ script arguments
+3 -3
View File
@@ -23,14 +23,14 @@ https://github.com/roboflow/supervision/assets/26109316/d051cc8a-dd15-41d4-aa36-
- setup python environment and activate it [optional]
```bash
python3 -m venv venv
source venv/bin/activate
uv venv
source .venv/bin/activate
```
- install required dependencies
```bash
pip install -r requirements.txt
uv pip install -r requirements.txt
```
## 🛠 scripts
+3 -3
View File
@@ -17,14 +17,14 @@ detection and Supervision for tracking and annotation.
- setup python environment and activate it [optional]
```bash
python3 -m venv venv
source venv/bin/activate
uv venv
source .venv/bin/activate
```
- install required dependencies
```bash
pip install -r requirements.txt
uv pip install -r requirements.txt
```
## 🛠️ script arguments
+3 -3
View File
@@ -20,14 +20,14 @@ https://github.com/roboflow/supervision/assets/26109316/c9436828-9fbf-4c25-ae8c-
- setup python environment and activate it [optional]
```bash
python3 -m venv venv
source venv/bin/activate
uv venv
source .venv/bin/activate
```
- install required dependencies
```bash
pip install -r requirements.txt
uv pip install -r requirements.txt
```
- download `traffic_analysis.pt` and `traffic_analysis.mov` files
+2 -3
View File
@@ -4,7 +4,6 @@ def ensure_pandas_installed() -> None:
except ImportError:
raise ImportError(
"`metrics` extra is required to run the function."
" Run `pip install 'supervision[metrics]'` or"
" `poetry add supervision -E metrics` or"
" `uv pip install 'supervision[metrics]'`"
" Run `uv pip install 'supervision[metrics]'` or"
" `uv add supervision --extra metrics`."
)