2026年4月

1、open-webui所需环境资源
python3.11+ 、 npm 、 node
2、文件下载地址
https://docs.openwebui.com/
官网介绍的是用docker 直接安装部署,可直接参考官网安装步骤进行安装即可。

在此提供本地直接安装部署 步骤

由于我们本机系统已经安装了python及其相关的pip服务,我们可以直接通过pip进行open-webui的安装具体安装方法如下:
3、安装
1) 切换镜像
pip config set global.index-url https://mirrors.aliyun.com/pypi/simple
2)安装服务
pip install open-webui
3)服务启动
open-webui serve
注意:在服务启动过程中由于open-webui链接模型 源为hugging face ,一般网络环境在国内是禁止访问的,所以如果你想下载其他大模型可通过科学上网的方式链接以上模型源地址。
对于本地要部署deepseek 的同学来说,你可以通过ollama 直接下载大模型后,不需要关注其他链接报错问题,直接启动ollama 以及open-webui即可

出现端口占用修改端口 可以通过修改config.json的形式修改open-webui的端口 也可以在启动命令中直接修改
open-webui serve --port 9089
默认服务启动端口为8080端口

安装python第三方库的时候会提示报错缺少依赖库,报错如下:

ERROR: Could not find a version that satisfies the requirement 模块名 (from automat) (from versions: none)
ERROR: No matching distribution found for 模块名

ERROR: Could not find a version that satisfies the requirement triton (from versions: none)
ERROR: No matching distribution found for triton
没有具体提示的时候在官网下载最新安装即可
官网网址:https://pypi.org/