curl -sSL https://install.python-poetry.org | python3 - 安装

poetry --version 验证安装是否成功

poetry env use python3.11 设置虚拟环境
poetry install install 命令从当前项目中读取 pyproject.toml 文件,解析依赖项并安装它们。

terminal输入poetry shell,得到poetry的路径
. /home/用户名/.cache/pypoetry/virtualenvs/rag-utils-re8bqiF8-py3.11/bin/activate
interpreter配置编译器位置:
. /home/用户名/.cache/pypoetry/virtualenvs/rag-utils-re8bqiF8-py3.11/bin/你的python版本
poetry install