0
点赞
收藏
分享

微信扫一扫

No matching distribution found for langchain-chatchat


首先进入到目录

cd /Users/lijie/Desktop/work/Langchain-Chatchat

用pip下载langchain-chatchat失败,找不到相对应的版本

该环境的python版本是3.11

No matching distribution found for langchain-chatchat_langchain


更改方式,使用poetry安装

首先安装poetry

pip install poetry

然后进行设置

poetry config virtualenvs.prefer-active-python true

再次输入,正确的返回结果应该是true

poetry config virtualenvs.prefer-active-python

No matching distribution found for langchain-chatchat_初始化_02


接下来进入到chatchat-server中

cd libs/chatchat-server/

安装相应的包

poetry install --with lint,test -E xinference

这个是下载结束后的结果

No matching distribution found for langchain-chatchat_virtualenv_03


接下来设置环境变量

vi ~/.bash_profile

在文件里添加一句

export CHATCHAT_ROOT=/Users/lijie/Desktop/work/Langchain-Chatchat/libs/chatchat-server/chatchat

接下来初始化项目配置文件和数据目录:

python chatchat/cli.py init

成功之后可以看到这样的界面

No matching distribution found for langchain-chatchat_初始化_04


执行 chatchat kb -r 初始化知识库

chatchat kb -r


举报

相关推荐

0 条评论