Auto-GPT依赖agent-protocol安装失败 寻求技术帮助
解决Auto-GPT稳定版依赖agent-protocol安装失败问题
问题分析
- 执行
pip install agent-protocol失败,提示无匹配版本:该包暂未发布到PyPI,无法通过标准pip源安装。 - 尝试
pip install git+https://github.com/AI-Engineers-Foundation/agent-protocol/tree/main/sdk/python失败:使用的是GitHub网页的tree路径,并非有效的Git克隆URL,导致Git无法识别仓库地址。
解决方案
方法一:使用正确的Git仓库URL+子目录参数安装
执行以下命令(通过#subdirectory指定Python SDK所在的子目录):
pip install git+https://github.com/AI-Engineers-Foundation/agent-protocol.git#subdirectory=sdk/python
方法二:手动克隆仓库后本地安装
- 克隆仓库到本地:
git clone https://github.com/AI-Engineers-Foundation/agent-protocol.git
- 进入Python SDK目录:
cd agent-protocol/sdk/python
- 本地安装包:
pip install .
额外检查项
- 确保系统已安装Git,可通过
git --version验证。 - 检查网络连接,确保能正常访问GitHub仓库。
内容的提问来源于stack exchange,提问作者Ayushya Verma
相关产品推荐
相关产品推荐

