asyncio.run() cannot be called from a running event loop

This problem usually occurs in jupyter.
The solutions found are not very easy to use.
Thank you very much for
seeing this comment .
Insert image description here

# pip install nest_asyncio首先安装此模块
import nest_asyncio#调用
nest_asyncio.apply()

successfully solved
Insert image description here

Guess you like

Origin blog.csdn.net/qq_54423921/article/details/131699738