> ## Documentation Index
> Fetch the complete documentation index at: https://ikun.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# 安装与设置

## 安装 agno

我们强烈建议：

* 在 Python 虚拟环境中，使用 `pip` 安装 `agno`。

<Steps>
  <Step title="创建虚拟环境">
    <CodeGroup>
      ```bash Mac theme={null}
      python3 -m venv ~/.venvs/agno
      source ~/.venvs/agno/bin/activate
      ```

      ```bash Windows theme={null}
      python3 -m venv agnoenv
      agnoenv/scripts/activate
      ```
    </CodeGroup>
  </Step>

  <Step title="安装 agno">
    使用 pip 安装 `agno`

    <CodeGroup>
      ```bash Mac theme={null}
      pip install -U agno
      ```

      ```bash Windows theme={null}
      pip install -U agno
      ```
    </CodeGroup>
  </Step>
</Steps>

<br />

<Note>
  如果遇到错误，请尝试使用 `python -m pip install --upgrade pip` 更新 pip。
</Note>

***

## 升级 agno

要升级 `agno`，请在您的虚拟环境中运行此命令：

```bash theme={null}
pip install -U agno --no-cache-dir
```

***

## 设置 Agno

使用 `ag setup` 登录并连接到 agno.com。

```bash theme={null}
ag setup
```
