Answer the question
In order to leave comments, you need to log in
Why doesn't the code work in different python development environments?
I have a code that is supposed to send me a text by a telegram bot. In PyCharm, I installed everything necessary for the code to work, and it works. And in Visual Studio Code, the same code does not work.
import telebot
token = "тут токен"
bot = telebot.TeleBot(token)
bot.send_message(тут чат ид,'mq')
print('mqmqmqmq')
Answer the question
In order to leave comments, you need to log in
In VS code, press CTRL + SHIFT + Y, in the menu that opens, select your folder and in the console that opens , write pip install имя библиотеки
A does not work because PyCharm creates a virtual environment by default
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question