Python 3.10 won't import modules

If you have 2 versions of python installed then try:

# from https://pypi.org/project/discord.py/
# you must use `discord.py`
py -3.10 -m pip install discord.py

to install with python 3.10

Check the version by pip -V it must be using python 3.9 by default.