O
O
ONEoftheFIRST2021-02-03 19:18:25
Python
ONEoftheFIRST, 2021-02-03 19:18:25

Why does pycharm grey out import "module name" when importing?

I want to import the second module, but it's underlined in grey? not as it should. I don't understand what could be the problem. Tried to import with from but to no availy5wn8t

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
Alexander Pikeev, 2021-02-03
@Baryon

Greyed out because the imported module has not yet been used in code.
Try adding somerandom.randint(1, 10)

Z
Zakhar Guskov, 2021-02-03
@Zuguki

Can you please attach a screenshot, I think that the problem is with the indentation between imports.

I
Ivan Balashov, 2021-02-04
@vanoren

If the library is not used in the code, it is greyed out. If you use it, it will be normal

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question