eosphoros-ai / DB-GPT

AI Native Data App Development framework with AWEL(Agentic Workflow Expression Language) and Agents
http://docs.dbgpt.cn
MIT License
13.28k stars 1.76k forks source link

Fix the Installing build dependencies ... error #1375

Closed xitong-0629 closed 4 months ago

xitong-0629 commented 5 months ago

Search before asking

Operating system information

Linux

Python version information

=3.11

DB-GPT version

main

Related scenes

Installation Information

Device information

Device: CPU

Models information

LLM_MODEL=chatgpt_proxyllm embedding_model:text2vec-large-chinese

What happened

When deploying DB-GPT 0.5.3 via source code and running pip install -e ".[default]", it prompts 'Installing build dependencies ... error', detailed error information is as follows:

image image

I tried modifying setup.py, changing the package spacy to the latest version 3.7.4, and the error disappeared. The same problem also occurred with torch, torchvision, and torchaudio, but after changing to the corresponding latest versions, the error was resolved. I'm a Python novice and not sure about the specific reasons.

What you expected to happen

Please take a look and help me understand. The way of changing versions doesn't seem to have hit the core of the issue.😅

How to reproduce

pip install -e ".[default]" According to the document

Additional context

No response

Are you willing to submit PR?

wallartup commented 5 months ago

Try pip uninstall spacy

And then try to run the install command again

yyhhyyyyyy commented 5 months ago

@xitong-0629 Are you utilizing conda or simply python for your environment? For those using conda, proceed with these commands:

conda create -n dbgpt_env python=3.10
conda activate dbgpt_env
pip install -e ".[default]"

For python users, initiate a new virtual environment, access it, and then run: pip install -e ".[default]"

github-actions[bot] commented 4 months ago

This issue has been marked as stale, because it has been over 30 days without any activity.

github-actions[bot] commented 4 months ago

This issue bas been closed, because it has been marked as stale and there has been no activity for over 7 days.