之前做了「把AutoGPT安裝部署到Windows」、「把AutoGPT下載安裝到Mac」兩隻影片。但有不少網友反應安裝AutoGPT遇到了各種各樣的問題導致失敗,今天我們提供一個新方法,這個方法只需要1分鐘8個步驟即可安裝部署AutoGPT,非常簡單!
影片教學請點選 👇
AutoGPT安裝部署到網頁
今天我們使用免費的Google Colab來安裝部署AutoGPT到Google Drive。
AutoGPT安裝指令
第一步:掛載到Google Drive
from google.colab import drive
drive.mount('/content/drive')
第二步:切換到掛載的MyDrive
cd drive/MyDrive
第三步:下載安裝Auto-GPT
!git clone https://github.com/Significant-Gravitas/Auto-GPT.git -b stable
第四步:切換到剛下載的Auto-GPT文件夾
cd Auto-GPT
第五步:安裝依賴環境
!pip install -r requirements.txt
第六步:.env.template 改為 env.txt
!mv .env.template env.txt
⚠️這裡改為TXT文檔,是為了方便編輯該文件,因為默認的 .env.template 是打不開的
OpenAI API Key 頁面點選 👉 這裡
第七步:env.txt 改為 .env
!mv env.txt .env
第八步:運行AutoGPT
!python -m autogpt --gpt3only
⚠️如果你是GPT-4,那麼用下面這條指令(一般用不到GPT-4)⚠️
!python -m autogpt
⚠️最新版本(0.3.0版)變成了自動模式,當你輸入上面的指令時,它會顯示為「I want Auto-GPT to: 」,這種情況直接輸入目標(goal)即可(即不需要輸入AI Name 和 Role 了)。另外,該模式下輸入的內容是不可見的,可以點選輸入框右側的👀圖示讓它顯示輸入的內容
當然,如果你想要變成和影片裡一樣,有「AI Name」、「Role」、「Goal」這幾個,只需要在「I want Auto-GPT to: 」後面輸入以下指令即可⚠️
--manual
⚠️另外,如果你第二次或第三次運行 Auto-GPT 時報錯了,可以直接回到 Google Drive 的「我的雲端硬盤」把 Auto-GPT 所有的文件刪除,再跟著影片重新安裝一遍就可以了⚠️
總結
在 Colab安裝部署Auto-GPT的方法非常簡單,甚至不需要安裝 Git 和 Python。
有任何問題請加入群組討論交流:
官方頻道 👉 https://bit.ly/3HjTyyA
官方群組(Telegram需要更新到最新版) 👉 https://bit.ly/3xdMTRK
如果你是第一次使用Telegram,請點選這裡 👉 https://youtu.be/84UHgvfCcec
你好, 我跟你這個方法安裝, 已安裝到第5個步, 但是我是還未有登記chatgpt的, 我可否登記完chatgpt後, 或改天才完成你這些安裝呢?
你好,可以的
你好,我第8步卡在了这里怎么办NEWS: Bulletin was updated! Press Enter to continue...
它让你按回车键了啊,你试试
显示“can not edit in read -only editor”,不能修改env.txt,有人碰到这个问题吗?请教一下是怎么解决的呀?
检查下代码有没有复制错
我运行到第八步出现这个是要做什么?
Asking user via keyboard...
I want Auto-GPT to:
直接输入你的目标就可以了(这是自动模式),不需要输入名字和角色那个部分了
Hi,
Thank you for your great effort, I've follow your youtube to install Auto GPT and successfully to get it running yesterday.
This morning I restart again and get this error, can you help to resolve with the following error?
Traceback (most recent call last):
File "/usr/lib/python3.10/runpy.py", line 187, in _run_module_as_main
mod_name, mod_spec, code = _get_module_details(mod_name, _Error)
File "/usr/lib/python3.10/runpy.py", line 146, in _get_module_details
return _get_module_details(pkg_main_name, error)
File "/usr/lib/python3.10/runpy.py", line 110, in _get_module_details
__import__(pkg_name)
File "/content/drive/MyDrive/Auto-GPT/autogpt/__init__.py", line 5, in
from dotenv import load_dotenv
ModuleNotFoundError: No module named 'dotenv'
Thank in advance.
Please check out this link:
https://github.com/Significant-Gravitas/Auto-GPT/issues
Hi Digitalnomadlc,
Thank you for your youtube instruction, I've successfully install Auto GPT yesterday. But when I restart this morning, the following error exist. Kindly help to resolve
Traceback (most recent call last):
File "/usr/lib/python3.9/runpy.py", line 188, in _run_module_as_main
mod_name, mod_spec, code = _get_module_details(mod_name, _Error)
File "/usr/lib/python3.9/runpy.py", line 147, in _get_module_details
return _get_module_details(pkg_main_name, error)
File "/usr/lib/python3.9/runpy.py", line 111, in _get_module_details
__import__(pkg_name)
File "/content/drive/MyDrive/Auto-GPT/autogpt/__init__.py", line 5, in
from dotenv import load_dotenv
ModuleNotFoundError: No module named 'dotenv'
Please check out this link:
https://github.com/Significant-Gravitas/Auto-GPT/issues
Asking user via keyboard: 这个后面有空格,要填写什么内容合适,或者随便填写即可
随便写就好了
输入第六步和第七步,!mv .env.template env.txt,都回复说“mv: cannot stat '.env.template': No such file or directory”
回到 Google Drive,找到 AutoGPT 文件夹,把它删除。再次安装试试
2023-05-10 09:16:59.579710: I tensorflow/core/platform/cpu_feature_guard.cc:182] This TensorFlow binary is optimized to use available CPU instructions in performance-critical operations.
To enable the following instructions: AVX2 AVX512F FMA, in other operations, rebuild TensorFlow with the appropriate compiler flags.
2023-05-10 09:17:01.035224: W tensorflow/compiler/tf2tensorrt/utils/py_utils.cc:38] TF-TRT Warning: Could not find TensorRT
2023-05-10 09:17:02.683896: I tensorflow/compiler/xla/stream_executor/cuda/cuda_gpu_executor.cc:996] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero. See more at https://github.com/torvalds/linux/blob/v6.0/Documentation/ABI/testing/sysfs-bus-pci#L344-L355
2023-05-10 09:17:02.684568: I tensorflow/compiler/xla/stream_executor/cuda/cuda_gpu_executor.cc:996] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero. See more at https://github.com/torvalds/linux/blob/v6.0/Documentation/ABI/testing/sysfs-bus-pci#L344-L355
2023-05-10 09:17:02.684864: I tensorflow/compiler/xla/stream_executor/cuda/cuda_gpu_executor.cc:996] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero. See more at https://github.com/torvalds/linux/blob/v6.0/Documentation/ABI/testing/sysfs-bus-pci#L344-L355
Please set your OpenAI API key in .env or as an environment variable.
You can get your key from https://platform.openai.com/account/api-keys
最后一步总是这样,重装三次了。。。求指点
这是你的 OpenAI API 密钥的问题,你的 API 界面绑卡了吗
运行!python -m autogpt时,提示/usr/bin/python3: No module named autogpt 这个该怎么操作
有没有先挂载
求问博主第二条指令显示这个是什么意思?Errno 2] No such file or directory: 'drive/MyDr'
/content
卸载重装
请问博主执行到第二条指令的时候出现,Errno 2] No such file or directory: 'drive/MyDr'
/content是什么意思?
卸载重装试试