almalinux中安装好open-webui,启动服务时报如下错:
bash
RuntimeError: [91mYour system has an unsupported version of sqlite3. Chroma requires sqlite3 >= 3.35.0.[0m
[94mPlease visit https://docs.trychroma.com/troubleshooting#sqlite to learn how to upgrade.[0m

安装pysqlite3
bash
pip install pysqlite3
方法一:
bash
#下载最新版本的SQLite源代码并构建源代码
# 合并文件sqlite3.c和sqlite3.h。
$ wget https://www.sqlite.org/src/tarball/sqlite.tar.gz?r=release \
-O sqlite.tar.gz
$ tar xzf sqlite.tar.gz
$ cd sqlite/
$ ./configure
$ make sqlite3.c
#将sqlite3合并文件复制到pysqlite3签出的根目录
#运行build_static + build:
$ cp sqlite/sqlite3.[ch] pysqlite3/
$ cd pysqlite3
$ python setup.py build_static build
方法二:修改 vi python3.12/site-packages/chromadb/init .py
前三行添加如下代码
bash
__import__('pysqlite3')
import sys
sys.modules['sqlite3'] = sys.modules.pop('pysqlite3')
结果如下
再启动open-webui serve命令
上述运行成功!