Search code examples
pythonvisual-studiotelegram

i cant import telegram even though i installed pytelegrambot


I'm new to vscode and im trying to create a telegram bot using python.

I installed the package using cmd python -m pip install pyTelegramBotAPI

enter image description here

I've searched online but none seem to fix my problem.

If its something to do with my environment and stuff,I used Venv and used this environment enter image description here


Solution

  • Thanks to @TimRoberts. I had to my environment was on the wrong version so I had to change it to the correct one