mirror of
https://github.com/open-webui/docs
synced 2025-05-19 10:52:14 +00:00
refac
This commit is contained in:
parent
20ebb874fd
commit
4bdb829064
@ -15,6 +15,7 @@ import DockerUpdating from './tab-docker/DockerUpdating.md';
|
||||
import Helm from './tab-kubernetes/Helm.md';
|
||||
import Kustomize from './tab-kubernetes/Kustomize.md';
|
||||
import Venv from './tab-python/Venv.md';
|
||||
import Uv from './tab-python/Uv.md';
|
||||
import Conda from './tab-python/Conda.md';
|
||||
import PythonUpdating from './tab-python/PythonUpdating.md';
|
||||
|
||||
@ -68,12 +69,12 @@ Choose your preferred installation method below:
|
||||
</TabItem>
|
||||
<TabItem value="python" label="Python">
|
||||
<Tabs>
|
||||
{/* <TabItem value="uvx" label="uvx">
|
||||
<TabItem value="uv" label="uv">
|
||||
<div className='mt-5'>
|
||||
<Uvx />
|
||||
<Uv />
|
||||
</div>
|
||||
<PythonUpdating />
|
||||
</TabItem> */}
|
||||
</TabItem>
|
||||
|
||||
|
||||
<TabItem value="conda" label="Conda">
|
||||
|
31
docs/getting-started/quick-start/tab-python/Uv.md
Normal file
31
docs/getting-started/quick-start/tab-python/Uv.md
Normal file
@ -0,0 +1,31 @@
|
||||
### 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
|
||||
$env:DATA_DIR="C:\open-webui\data"; uvx --python 3.11 open-webui@latest serve
|
||||
```
|
@ -121,14 +121,16 @@ Once `uv` is installed, running Open WebUI is a breeze. Use the command below, e
|
||||
|
||||
- **macOS/Linux**:
|
||||
```bash
|
||||
DATA_DIR=~/.open-webui uvx --python 3.11 open-webui serve
|
||||
DATA_DIR=~/.open-webui uvx --python 3.11 open-webui@latest serve
|
||||
```
|
||||
|
||||
- **Windows**:
|
||||
```powershell
|
||||
$env:DATA_DIR="C:\open-webui\data"; uvx --python 3.11 open-webui serve
|
||||
$env:DATA_DIR="C:\open-webui\data"; uvx --python 3.11 open-webui@latest serve
|
||||
```
|
||||
|
||||
|
||||
|
||||
### Installation with `pip`
|
||||
|
||||
For users installing Open WebUI with Python's package manager `pip`, **it is strongly recommended to use Python runtime managers like `uv` or `conda`**. These tools help manage Python environments effectively and avoid conflicts.
|
||||
|
Loading…
Reference in New Issue
Block a user