E
E
ennyti2020-05-29 18:15:50
Python
ennyti, 2020-05-29 18:15:50

How to fix the error: ModuleNotFoundError: No module named 'telebot'?

This is what PyCharm shows me when I start the bot:

C:\Users\Павел\PycharmProjects\telebot\venv\Scripts\python.exe C:/Users/Павел/PycharmProjects/telebot/bot.py
Traceback (most recent call last):
  File "C:/Users/Павел/PycharmProjects/telebot/bot.py", line 1, in <module>
    import telebot
ModuleNotFoundError: No module named 'telebot'

Process finished with exit code 1

As I understand it, it swears at the first line: import = telebot
At the same time, all the necessary libraries are installed.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey Karbivnichy, 2020-05-29
@ennyti

Rename your project directory from 'telebot' to something else. And don't name files and directories of your projects with names that match package (library) names.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question