fix: python path

This commit is contained in:
csunny 2023-05-18 17:36:59 +08:00
parent 0d370a1a64
commit eb24aef9f1
2 changed files with 1 additions and 8 deletions

View File

@ -158,10 +158,7 @@ Alternatively, you can use the following command:
cd DB-GPT
conda env create -f environment.yml
```
It is recommended to set the Python package path to avoid runtime errors due to package not found.
```
echo "/root/workspace/DB-GPT" > /root/miniconda3/env/dbgpt_env/lib/python3.10/site-packages/dbgpt.pth
```
Notice: You need replace the path to your owner.
### 3. Run

View File

@ -157,10 +157,6 @@ pip install -r requirements.txt
cd DB-GPT
conda env create -f environment.yml
```
另外需要设置一下python包路径, 避免出现运行时找不到包
```
echo "/root/workspace/DB-GPT" > /root/miniconda3/env/dbgpt_env/lib/python3.10/site-packages/dbgpt.pth
```
### 3. 运行大模型