1、首次源码安装时安装的其实dbgpt到conda环境中,会将路径一起安装。
如果有其他的路径使用同样的conda环境会报错,一直读取的就是原先的路径的内容。需要自己新创建一个conda env
2、界面中配置知识库问答时,报错
shell
# 1、报的错如下,无法对上传的{DF文档进行切分
document sync error cryptography>=3.1 is required for AES algorithm # 报错
pip install -U cryptography # 解决(重启dbgpt_server.py服务)
# 2、切分完成后,进行问答时后台日志报错
ERROR: Could not install packages due to an OSError: HTTPSConnectionPool(host='github.com', port=443): Max retries exceeded with url: /explosion/spacy-models/releases/download/zh_core_web_sm-3.5.0/zh_core_web_sm-3.5.0-py3-none-any.whl (Caused by NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x7f3f44862ec0>: Failed to establish a new connection: [Errno 111] Connection refused')) # 报错 直接杀死了dbgpt_server.py
# 以下为解决方法
python -m spacy download zh_core_web_sm-3.5.0 --direct