L
L
Lemstck2022-03-11 09:53:15
Python
Lemstck, 2022-03-11 09:53:15

Hello. How to fix ModuleNotFoundError: No module named' errors?

File "C:\Users\User\Desktop\telegram_bot\bot_telegram.py", line 10, in
from handlers import client, admin, other
File "C:\Users\User\Desktop\telegram_bot\handlers\__init__.py", line 1, in
from handlers import client
File "C:\Users\User\Desktop\telegram_bot\handlers\client.py", line 3, in
from keyboards import kb_client
File "C:\Users\User\Desktop\telegram_bot\keyboards \__init__.py", line 1, in
from keyboards.client_kb import kb_client
ModuleNotFoundError: No module named 'keyboards.client_kb'

What's wrong?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Nesterov, 2022-03-11
@AlexNest

Well, I do not know:

ModuleNotFoundError: No module named 'keyboards.client_kb'

Something strongly suggests that you do not have the specified module installed.
Possible reasons:
Not installed via pip
Installed in the "shared pool" and run through a virtual environment (or vice versa)
Wrong spelling of the name (for example, not keyboard s , but keyboard)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question