Skip to content Skip to sidebar Skip to footer

I Installed A Module Called Discord And When Using "import Discord" I Get The Error: "modulenotfounderror: No Module Named 'discord'"

The module 'discord' I installed in the command prompt which I ran as administrator can't be found. It's located in my site-packages directory along with some other modules such as

Solution 1:

That error is common on Python version 3.7

If you are trying to run your bot or discord app with Python 3.7 and getting an error such as Invalid Syntax, we recommend that you install Python 3.6.x instead. Discord.py isn't supported on 3.7 due to asyncio not supporting it. Remember to add Python to PATH!

Install an older version of PY to run discord!

Solution 2:

As it says in the description of "discord", This is a mirror package .

in my opinion, although it was supposed to install discord.py, it did not install. When you download the library through pip you should write pip install discord.py instead of pip install discord. Once you have downloaded discord.py you will be able to do import discord.

And also make sure your python version is Python 3.5.3 or higher.

Post a Comment for "I Installed A Module Called Discord And When Using "import Discord" I Get The Error: "modulenotfounderror: No Module Named 'discord'""