No Module Named 'discord'
I'm creating a discord bot, but when I try to import discord, I am getting this error: Traceback (most recent call last): File 'C:\Users\Someone\Desktop\Discord bot\bot.py', line
Solution 1:
The Ctrl~ (actually Ctrl`) "terminal" isn't actually a command line terminal, it's a Python REPL. Open the command prompt in Windows by hitting WinR, then typing cmd
and hitting Enter. pip install discord.py
should now install discord.py
and all of its dependencies.
Solution 2:
The problem is that you wrote the pip command into a Python prompt instead of the OS terminal
Post a Comment for "No Module Named 'discord'"