mirror of
https://github.com/open-webui/docs
synced 2025-06-16 11:28:36 +00:00
Add Venv.md changes from feature-nginx-combined
This commit is contained in:
parent
c5e7df03aa
commit
e44803147c
38
docs/getting-started/quick-start/tab-python/Venv.md
Normal file
38
docs/getting-started/quick-start/tab-python/Venv.md
Normal file
@ -0,0 +1,38 @@
|
|||||||
|
|
||||||
|
# Using Virtual Environments
|
||||||
|
|
||||||
|
Create isolated Python environments using `venv`.
|
||||||
|
|
||||||
|
## Steps
|
||||||
|
|
||||||
|
1. **Create a Virtual Environment:**
|
||||||
|
|
||||||
|
```bash
|
||||||
|
python3 -m venv venv
|
||||||
|
```
|
||||||
|
|
||||||
|
2. **Activate the Virtual Environment:**
|
||||||
|
|
||||||
|
- On Linux/macOS:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
source venv/bin/activate
|
||||||
|
```
|
||||||
|
|
||||||
|
- On Windows:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
venv\Scripts\activate
|
||||||
|
```
|
||||||
|
|
||||||
|
3. **Install Open WebUI:**
|
||||||
|
|
||||||
|
```bash
|
||||||
|
pip install open-webui
|
||||||
|
```
|
||||||
|
|
||||||
|
4. **Start the Server:**
|
||||||
|
|
||||||
|
```bash
|
||||||
|
open-webui serve
|
||||||
|
```
|
Loading…
Reference in New Issue
Block a user