discord模块在python中失败。我怎样才能解决这个问题?

时间:2019-03-16 18:05:13

标签: python discord

所以我试图在我的第一行代码中导入discord模块,当我运行它时,该程序会立即显示与我的代码无关的错误。



回溯(最近通话最近):   文件“ /Users/admin/PycharmProjects/discordbott/dbot1.py”,第1行,在     进口不和谐   在第20行的文件“ /Users/admin/PycharmProjects/discordbott/venv/lib/python3.7/site-packages/discord/init.py”中     从.client导入客户端,AppInfo,ChannelPermissions   文件“ /Users/admin/PycharmProjects/discordbott/venv/lib/python3.7/site-packages/discord/client.py”,第38行     从.state导入ConnectionState   文件“ /Users/admin/PycharmProjects/discordbott/venv/lib/python3.7/site-packages/discord/state.py”,第36行,在     来自。导入实用程序,兼容   文件“ /Users/admin/PycharmProjects/discordbott/venv/lib/python3.7/site-packages/discord/compat.py”,第32行     create_task = asyncio.async                               ^ SyntaxError:语法无效

0 个答案:

没有答案