Use !uv pip install in jupyter notebooks (#21793)

Signed-off-by: Glenn Jocher <glenn.jocher@ultralytics.com>
This commit is contained in:
Glenn Jocher 2025-08-24 21:25:47 +02:00 committed by GitHub
parent 290e725a12
commit a2d7a62f3f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
6 changed files with 8 additions and 8 deletions

View File

@ -52,7 +52,7 @@ Simply `pip install ultralytics` and run `yolo explorer` in your terminal to run
Pip install `ultralytics` and [dependencies](https://github.com/ultralytics/ultralytics/blob/main/pyproject.toml) and check software and hardware.
```bash
%pip install ultralytics[explorer] openai
!uv pip install ultralytics[explorer] openai
yolo checks
```

View File

@ -62,7 +62,7 @@
}
],
"source": [
"%pip install ultralytics\n",
"!uv pip install ultralytics\n",
"import ultralytics\n",
"\n",
"ultralytics.checks()"

View File

@ -60,7 +60,7 @@
}
],
"source": [
"%pip install ultralytics # install\n",
"!uv pip install ultralytics # install\n",
"from ultralytics import YOLO, checks, hub\n",
"\n",
"checks() # checks"

View File

@ -62,7 +62,7 @@
}
],
"source": [
"%pip install ultralytics\n",
"!uv pip install ultralytics\n",
"import ultralytics\n",
"\n",
"ultralytics.checks()"

View File

@ -62,7 +62,7 @@
}
],
"source": [
"%pip install ultralytics\n",
"!uv pip install ultralytics\n",
"import ultralytics\n",
"\n",
"ultralytics.checks()"

View File

@ -82,7 +82,7 @@
"outputId": "83aa8598-79c6-431e-b609-3d57fd1a5bf5"
},
"source": [
"%pip install ultralytics\n",
"!uv pip install ultralytics\n",
"import ultralytics\n",
"ultralytics.checks()"
],
@ -622,7 +622,7 @@
"cell_type": "code",
"source": [
"# Pip install from source\n",
"!pip install git+https://github.com/ultralytics/ultralytics@main"
"!uv pip install git+https://github.com/ultralytics/ultralytics@main"
],
"metadata": {
"id": "pIdE6i8C3LYp"
@ -635,7 +635,7 @@
"source": [
"# Git clone and run tests on 'main' branch\n",
"!git clone https://github.com/ultralytics/ultralytics -b main\n",
"%pip install -qe ultralytics"
"!uv pip install -qe ultralytics"
],
"metadata": {
"id": "uRKlwxSJdhd1"