mirror of
https://github.com/open-webui/docs.git
synced 2025-12-29 07:49:46 +07:00
1.1 KiB
1.1 KiB
Using Virtual Environments
Create isolated Python environments using venv.
Venv Steps
-
Create a Virtual Environment:
python3 -m venv venv -
Activate the Virtual Environment:
-
On Linux/macOS:
source venv/bin/activate -
On Windows:
venv\Scripts\activate
-
-
Install Open WebUI:
pip install open-webui -
Start the Server:
open-webui serve
:::tip 'open-webui: command not found'? If your terminal says the command doesn't exist:
- Ensure your virtual environment is activated (Step 2).
- If you still get an error, try running it via Python directly:
python -m open_webui serve - If you want to store your data in a specific place, use:
DATA_DIR=./data open-webui serve:::
Uninstall
-
Delete the Virtual Environment: Simply remove the
venvfolder:rm -rf venv -
Remove Data (WARNING: Deletes all data): Delete your data directory (usually
~/.open-webuiunless configured otherwise):rm -rf ~/.open-webui