這是本文件的舊版!


安裝 AutoGPT 紀錄

  • 安裝環境 : PVE 內啟動一個 CT - ubuntu22.04 範本建立
  • 更新與安裝 Ubuntu 套件

    apt update && apt upgrade -y
    apt install python3-pip git -y

  • 查看 python 版本是否高於 3.8

    root@ct-autogpt:~# python3 --version
    Python 3.10.6
    root@ct-autogpt:~# pip --version
    pip 22.0.2 from /usr/lib/python3/dist-packages/pip (python 3.10)

  • 下載與安裝 AutoGPT

    git clone https://github.com/Torantulino/Auto-GPT.git
    cd Auto-GPT
    pip install -r requirements.txt

  • 編輯 .env 內容

    cp .env.template .env
    vi .env

    將 OPENAI_API_KEY=your-openai-api-key 換成剛剛取得的 OpenAI Key Exp.

    :
    ### OPENAI
    # OPENAI_API_KEY - OpenAI API Key (Example: my-openai-api-key)
    # TEMPERATURE - Sets temperature in OpenAI (Default: 1)
    # USE_AZURE - Use Azure OpenAI or not (Default: False)
    OPENAI_API_KEY=sk-lxhrxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxzmbR
    :
  • 安裝環境 : PVE 內啟動一個 CT - alpine3.7 範本建立
  • 結果在 pip install -r requirements.txt 出現以下錯誤

    :
    Collecting black
      Downloading black-23.3.0-py3-none-any.whl (180 kB)
         ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 181.0/181.0 kB 6.2 MB/s eta 0:00:00
    ERROR: Could not find a version that satisfies the requirement sourcery (from versions: none)
    ERROR: No matching distribution found for sourcery

  • 更新與安裝 alpine 套件

    apk update && apk upgrade
    apk add git python3 py3-pip

  • 查看 python 版本是否高於 3.8

    ct-autogpt:~# python3 --version
    Python 3.10.11
    ct-autogpt:~# pip --version
    pip 22.3.1 from /usr/lib/python3.10/site-packages/pip (python 3.10)

  • 下載與安裝 AutoGPT

    git clone https://github.com/Torantulino/Auto-GPT.git
    cd Auto-GPT
    pip install -r requirements.txt
    :

  • tech/autogpt.1681622334.txt.gz
  • 上一次變更: 2023/04/16 13:18
  • jonathan