mirror of
https://github.com/PaiGramTeam/PaiGram.git
synced 2024-09-28 11:48:21 +00:00
更新 README.md
需求说明
This commit is contained in:
parent
c91934cad7
commit
bb819b6067
26
README.md
26
README.md
@ -11,9 +11,31 @@
|
|||||||
|
|
||||||
基于
|
基于
|
||||||
[python-telegram-bot](https://github.com/python-telegram-bot/python-telegram-bot)
|
[python-telegram-bot](https://github.com/python-telegram-bot/python-telegram-bot)
|
||||||
的异步测试分支的原神BOT
|
的BOT
|
||||||
|
|
||||||
|
## 需求
|
||||||
|
|
||||||
|
### 环境需求
|
||||||
|
|
||||||
|
- Python 3.8+
|
||||||
|
- MySQL
|
||||||
|
- Redis
|
||||||
|
|
||||||
|
### 模块需求
|
||||||
|
|
||||||
|
因为上游 `genshin.py` 的原因 python 最低版本为 3.8
|
||||||
|
|
||||||
|
`python-telegram-bot` 需要预览版本 即 `20.0a0`
|
||||||
|
|
||||||
|
出现相关的 `telegram` 模块导入的 `ImportError` 错误需要你手动执行 `pip install python-telegram-bot==20.0a0`
|
||||||
|
|
||||||
|
请注意你的 python 是否安装 `aiohttp` ( `genshin.py` 的依赖)
|
||||||
|
|
||||||
|
如果 `aiohttp` 版本大于 `4.0.0a1`
|
||||||
|
会导致 `redis` 和 `aiohttp` 的依赖 `async-timeout` 版本冲突进而运行代码导致 `TypeError` 异常
|
||||||
|
|
||||||
|
解决上面版本冲突导致的错误需要你手动执行 `pip install aiohttp==3.8.1`
|
||||||
|
|
||||||
~~为啥用测试版本?别问,问就是我想急着用了。~~
|
|
||||||
|
|
||||||
### 其他说明
|
### 其他说明
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user