You can change the Python Interpreter in VSCODE to solve this issue.


Open settings in VSCODE by pressing Ctrl + Shift + P. Make sure your .py file is open while doing this step.


Search there Python: Select Interpreter and choose the right version.

Reload VSCODE and see if it works!
I opened command prompt (I'm on Windows) and I typed:
'''none
pip3 install discord
'''
Then it said it installed discord, and I was ready to go! (I already had Python 3.9.7 installed)
Then when I opened VSCode up and typed:   import discord   I got this error message:

"discord" is not accessedPylance
Import "discord" could not be resolvedPylancereportMissingImports

What does this mean, and how can I fix it? I was really looking forward to coding the bot, but don't know how, now that this is messed up.
I tried to add Python to VSCode, but it won't work