remove default fastapi installation (#1557)

This commit is contained in:
Ju4tCode
2023-01-06 20:07:28 +08:00
committed by GitHub
parent c38437a22f
commit 87e767fa25
9 changed files with 270 additions and 256 deletions

View File

@ -24,7 +24,7 @@ nb adapter list
或者自行输入命令安装:
```bash
nb adapter install <adapter-name>
nb adapter install <adapter-package>
```
或者使用交互模式安装:
@ -36,7 +36,7 @@ nb adapter install
也可以使用 pip 安装
```bash
pip install <adapter-name>
pip install <adapter-package>
```
<Asciinema

View File

@ -7,7 +7,7 @@ import Asciinema from "@site/src/components/Asciinema";
# 安装驱动器
NoneBot 在默认安装情况下内置了 `fastapi` 服务端驱动器,其他驱动器如 `httpx`、`aiohttp` 则需要额外安装。
NoneBot 在默认安装情况下内置了 `none` 驱动器,其他驱动器如 `fastapi`、`httpx`、`aiohttp` 则需要额外安装。
## 查看
@ -38,7 +38,7 @@ nb driver install
也可以使用 pip 安装
```bash
pip install <driver-name>
pip install <driver-package>
```
<Asciinema

View File

@ -24,7 +24,7 @@ nb plugin list
或者自行输入命令安装:
```bash
nb plugin install <plugin-name>
nb plugin install <plugin-package>
```
或者使用交互模式安装:
@ -36,7 +36,7 @@ nb plugin install
也可以使用 pip 安装
```bash
pip install <plugin-name>
pip install <plugin-package>
```
<Asciinema

View File

@ -48,9 +48,9 @@ nb-cli 的使用方法详见[使用脚手架](./nb-cli.md)
如果你不想使用脚手架,可以直接安装 NoneBot2并自行完成开发配置。
```bash
pip install nonebot2
pip install nonebot2[fastapi]
# 也可以通过 Poetry 安装
poetry add nonebot2
poetry add nonebot2[fastapi]
```
## 从 GitHub 安装