赞
踩
https://github.com/OpenBMB/ChatDev
1,下载:
运行命令 git clone https://github.com/OpenBMB/ChatDev.git
的时候出现问题。
因此直接在网上下载了zip文件在本地解压。
2, 建立虚拟环境并进入
python3 -m venv venv
source venv/bin/activate
3,安装
cd chatdev
pip3 install -r requirements.txt #这里有pip, 也有pip3, which pip3可以看到。用pip3
4,设置环境变量
export OPENAI_API_KEY="your_OpenAI_API_key"
这个是针对每个terminal的,每打开一个terminal都得设置
5, Build your software:
python3 run.py --task "[description_of_your_idea]" --name "[project_name]"
例如, python3 run.py --task "a_python_game" --name "python_game"
问题:运行到这一步的时候,会出现一个错误:“You exceeded your current quota, please check your plan and billing details. For more information on this error”应该是api_key费用的问题。所以不让使用。后面的那些都没有办法继续。
6, Run Your Software:
Once generated, you can find your software in the WareHouse directory under a specific project folder, such as project_name_DefaultOrganization_timestamp. Run your software using the following command within that directory: On Unix/Linux:
cd WareHouse/project_name_DefaultOrganization_timestamp
例如,cd WareHouse/python_game_DefaultOrganization_20240524164503
python3 main.py
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。