Auto-GPT 安装方案
# Auto-GPT 安装方案
准备工作: python3.8 以上 chatGPT 账号以及 xx 账号 pinecone账号 和token https://app.pinecone.io/
准备翻墙工具一枚。
# 安装指南:
https://github.com/Torantulino/Auto-GPT
# 安装python
# 更新pip
# 使用 pip 国内镜像进行安装 依赖。
pip install xxx http://mirrors.aliyun.com/pypi/simple/ --trusted-host mirrors.aliyun.com cryptography
# 安装rust
注意可能需要安装:rustup target add i686-pc-windows-msvc
查看cargo 版本,最好要新版本。 cargo --version
# 更改 配置文件 .env
填入 chatGPT token pinecone token
# 使用代理访问
WinError 10060
打开安装的openai的库中的api_requestor.py 找到“if not hasattr(_thread_context, "session"):”方法,并在此方法上方加入代理 Example:
proxy={ 'http':'127.0.0.1:10809', 'socks5':'127.0.0.1:10808' } 在“result = _thread_context.session.request(”中加入代理 proxies=proxy
https://github.com/Torantulino/Auto-GPT/issues/1128
# chatgpt调用api接口出现连接不上的错误
pip install urllib3==1.25.11 降级安装。 https://zhuanlan.zhihu.com/p/613833600
# 解决本地证书问题
pip install certifi
pip install python-certifi-win32 https://stackoverflow.com/questions/51925384/unable-to-get-local-issuer-certificate-when-using-requests-in-python
可能用到其他选择方案:https://blog.csdn.net/tt75281920/article/details/104122012
# 本地防火墙 添加python 允许
https://www.cnblogs.com/si-dian/p/12196931.html
# 验证本地是否可以正常访问
https://api.openai.com/v1/chat/completions