AutoGPT安装教程

最近安装AutoGPT时遇到了一些问题,写下这篇文章记录一下

1 下载AutoGPT

AutoGPT链接:https://github.com/Significant-Gravitas/Auto-GPT/tree/v0.2.2
下载AutoGPT 推荐下载stable 版本
在这里插入图片描述

2 申请openai 的api key

获取api的key,这里就不介绍了,详细的可以去看其它博客
https://platform.openai.com/account/api-keys

3 安装AutoGPT

python版本一定需要是3.10以上
升级python版本
下载链接:https://www.python.org/downloads/windows/

  1. 进入AutoGPT目录,按照依赖
pip install -r requirements.txt

安装出错 ERROR: No matching distribution found for colorama==0.4.6

这个可能是镜像源有问题,下方是一些常见的镜像源。也有可能是python版本的问题,需要更新python到3.10以上的版本

pip config set global.index-url http://pypi.douban.com/simple/

选择国内的镜像源列表如下:
清华源: https://pypi.tuna.tsinghua.edu.cn/simple/
阿里云: http://mirrors.aliyun.com/pypi/simple/
中国科技大学: https://pypi.mirrors.ustc.edu.cn/simple/
豆瓣(douban):http://pypi.douban.com/simple/
清华大学: https://pypi.tuna.tsinghua.edu.cn/simple/
中国科学技术大学: http://pypi.mirrors.ustc.edu.cn/simple/

  1. 配置API KEY
    在这里插入图片描述
    打开.env文件配置自己的API KEY
    2 Baby AGI
  2. 运行
run.bat

requests.exceptions.ConnectionError: (‘Connection aborted.’,
ConnectionResetError(10054, ‘远程主机强迫关闭了一个现有的连接。’, None, 10054, None))

4 其它错误

查看设置
python -m pip config list
设置源
python -m pip config set global.index-url ‘http://mirrors.aliyun.com/pypi/simple/’
设置信任镜像
python -m pip config set install.trusted-host ‘mirrors.aliyun.com’
查看目前已经设置哪些下载源
conda config --show channels
更新pip
python -m pip install --upgrade pip

本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
THE END
分享
二维码
< <上一篇
下一篇>>