我是Syder的Pycharm初学者。现在,搬到皮查姆之后出现了新问题。
[也许有人知道,Python适合制作不和谐的机器人。我在终端中使用pip install安装discord软件包,然后开始编写代码。一旦运行它,控制台将返回:ModuleNotFoundError: No module named 'discord'
供参考,这里是代码:
# Marble Police
import discord
from discord.ext import commands
client = commands.Bot(command_prefix="/")
@client.event
async def on_ready():
print("Marble Police has been dispatched!")
client.run({BOT TOKEN})
如果您需要其他信息,请在下面询问我。
pip install discord.py