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:UsersSomeoneDesktopDiscord botot.py", line 2, in <module>
import discord
ModuleNotFoundError: No module named 'discord'
[Finished in 0.5s]
I opened a terminal ctrl + ~ and typed:
pip install discord.py
And I have got this error:
File "<string>", line 1
pip install discord.py
^
SyntaxError: invalid syntax
Can anyone help me?
See Question&Answers more detail:os