mirror of
https://github.com/open-webui/docs.git
synced 2026-01-02 09:49:38 +07:00
The docs contain two commands to run on Windows. The first command can be run on any shell; the second is only valid inside PowerShell. While the syntax highlighting hints already indicate this, there is no way for the end user to have any knowledge of this; so this commit adds a notation on the second command denoting it should be run inside PowerShell
32 lines
935 B
Markdown
32 lines
935 B
Markdown
### Installation with `uv`
|
|
|
|
The `uv` runtime manager ensures seamless Python environment management for applications like Open WebUI. Follow these steps to get started:
|
|
|
|
#### 1. Install `uv`
|
|
|
|
Pick the appropriate installation command for your operating system:
|
|
|
|
- **macOS/Linux**:
|
|
```bash
|
|
curl -LsSf https://astral.sh/uv/install.sh | sh
|
|
```
|
|
|
|
- **Windows**:
|
|
```powershell
|
|
powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"
|
|
```
|
|
|
|
#### 2. Run Open WebUI
|
|
|
|
Once `uv` is installed, running Open WebUI is a breeze. Use the command below, ensuring to set the `DATA_DIR` environment variable to avoid data loss. Example paths are provided for each platform:
|
|
|
|
- **macOS/Linux**:
|
|
```bash
|
|
DATA_DIR=~/.open-webui uvx --python 3.11 open-webui@latest serve
|
|
```
|
|
|
|
- **Windows** (PowerShell):
|
|
```powershell
|
|
$env:DATA_DIR="C:\open-webui\data"; uvx --python 3.11 open-webui@latest serve
|
|
```
|