Q
Q
QwEEzeR2021-10-10 18:05:18
Python
QwEEzeR, 2021-10-10 18:05:18

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

1 answer(s)
P
Python Newbie, 2021-10-10
@Levman5

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 question

Ask a Question

731 491 924 answers to any question