Discord.py with Pycharm ModuleNotFoundError: No module named ‘discord.ext’

  discord.py, pycharm, python
    Traceback (most recent call last):
  File "C:UserskolbaxxPycharmProjectspythonProjectdiscordmain.py", line 2, in <module>
    from discord.ext import commands
ModuleNotFoundError: No module named 'discord.ext'

I was Writing my bot for a couple of day with pycharm and averything worked normaly. But today suddendly I can’t run it anymore and still got this error Message for Import doesn’t working. I reinstalled everything. python reinstalled, pycharm reinstalled, discord.py reinstalled. If I start the same code with cmd everything works fine.

Source: Python Questions

LEAVE A COMMENT