import asyncio
async def main():
print('hello')
await asyncio.sleep(1)
print('world')
asyncio.run(main())
$ which python3.7
/Library/Frameworks/Python.framework/Versions/3.7/bin/python3.7
$ python3.7 asyncio.py
Traceback (most recent call last):
File "asyncio.py", line 1, in <module>
import asyncio
File "asyncio.py", line 10, in <module>
asyncio.run(main())
AttributeError: module 'asyncio' has no attribute 'run'