python module 'asyncio' has no attribute 'run'


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

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