After running pip3 install python-telegram-bot in command prompt, I get 'telegram' module is not found when I run python -m telegram after the installation.
I have Python 3.9 and 3.10.1 installed, and it seems like the package is installed in the Python 3.9 directory as the output during the installation shows ...pythonsoftwarefoundation.python.3.9
I am new to programming, so I am at a lost as to how to install it for Python 3.10.1. Appreciate any guidance I can get.
Since you installed the module through pip3 there is a chance you just need to use python3. Try python3 -m telegram.
Opposite it might be that you need to use pip install python-telegram-bot for it to work with python.
Usually pip is linked to python and pip3 is linked to python3 but it is only a guideline, not a rule.
If that doesn't work you can always invoke pip for the other python binary with python -m pip install python-telegram-bot
How do I install python-telegram-bot to python 3.10.1?