摘要: 使用 gunicorn -w 4 -b 0.0.0.0:8080 main:app 运行时,报错 TypeError: __call__() missing 1 required positional argument: 'send' from fastapi import FastAPI app 阅读全文
posted @ 2022-06-13 18:22 darling331 阅读(1142) 评论(0) 推荐(0) 编辑
摘要: python 使用uvicorn运行时报错module 'asyncio' has no attribute 'run' 很大可能是python的版本太低了 因为python3.7 及以后才支持run方法 或者是看一下你的项目文件里是不是命名了一个asyncio.py的文件,和运行的文件冲突了 阅读全文
posted @ 2022-06-13 18:15 darling331 阅读(120) 评论(0) 推荐(0) 编辑