python module 'asyncio' has no attribute 'run'

python 使用uvicorn运行时报错module 'asyncio' has no attribute 'run'

很大可能是python的版本太低了
因为python3.7 及以后才支持run方法
或者是看一下你的项目文件里是不是命名了一个asyncio.py的文件,和运行的文件冲突了

posted @ 2022-06-13 18:15  darling331  阅读(120)  评论(0编辑  收藏  举报