Я создаю бот-дискорд, и каждый раз, когда я пытаюсь импортировать discord.py, я получаю синтаксическую ошибку.
import discord.py
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\Program Files\Python37\lib\site-packages\discord\__init__.py", line 20, in <module>
from .client import Client, AppInfo, ChannelPermissions
File "C:\Program Files\Python37\lib\site-packages\discord\client.py", line 38, in <module>
from .state import ConnectionState
File "C:\Program Files\Python37\lib\site-packages\discord\state.py", line 36, in <module>
from . import utils, compat
File "C:\Program Files\Python37\lib\site-packages\discord\compat.py", line 32
create_task = asyncio.async
^
SyntaxError: invalid syntax