'Python Discord Bot, Modul not found error

I'm trying to create a discord bot, but i have basic problem... I have this on start of code:

import discord.py
from discord.ext import commands

Im gettin that error:

PS C:\Users\trnka> & "C:/Program Files/Inkscape/bin/python.exe" c:/Python_projects/Discord_Bots/RCN_bot/RCN.py Traceback (most recent call last): File "c:\Python_projects\Discord_Bots\RCN_bot\RCN.py", line 1, in import discord.py ModuleNotFoundError: No module named 'discord'

But I have installed everything from here, as instalation manual said. Can anyone help me?



Solution 1:[1]

Before:

import discord

After:

import discord.abc

Solution 2:[2]

import discord

and not discord.py

EDIT: checking the repository page https://github.com/Rapptz/discord.py supported versions are: 3.5, 3.6, 3.7 and 3.8, maybe you need to try on those versions.

Solution 3:[3]

Execute the program outside VSCode e.g. with the Python Program (so python.exe which you hopefully installed (standard is C:/Users/USER/AppData/Local/Programs/Python/PythonVERSION/)) or PyCharm as VSCode has their own library folder which seems to not include discor.py

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 yusufYAZICI155
Solution 2
Solution 3 FlexGames