windows使用privateGPT踩坑记录

windows使用privateGPT踩坑记录~
记录时间:2023-03-24

python只能安装3.11.x

(.venv) D:\Moxing\privateGPT>poetry install --extras "ui llms-llama-cpp llms-openai llms-openai-like llms-ollama llms-sagemaker llms-azopenai embeddings-ollama embeddings-huggingface embeddings-openai embeddings-sagemaker embeddings-azopenai vector-stores-qdrant vector-stores-chroma vector-stores-postgres storage-nodestore-postgres"
Current Python version (3.12.2) is not allowed by the project (>=3.11,<3.12).
Please change python executable via the "env use" command.

下面这两行就挨个执行,别管是否重复,不重复就bug(安装了a,缺了b,把b补上缺了c)

poetry install --extras "ui llms-llama-cpp llms-openai llms-openai-like llms-ollama llms-sagemaker llms-azopenai embeddings-ollama embeddings-huggingface embeddings-openai embeddings-sagemaker embeddings-azopenai vector-stores-qdrant vector-stores-chroma vector-stores-postgres storage-nodestore-postgres"
poetry install --extras "ui llms-ollama embeddings-ollama vector-stores-qdrant"


windows执行poetry出现profiles参数只有default,大概率是上一步的环境变量设置未生效
powershell执行:

$env:{变量}='{变量值}' 

cmd执行:

set {变量}={变量值}

自己在powershell使用了set导致变量未生效!!!
分割线------------------
同时没有生效的话,使用的则是privateGPT目录下的settings-local.yaml的配置内容