Answer the question
In order to leave comments, you need to log in
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 avail
Answer the question
In order to leave comments, you need to log in
Greyed out because the imported module has not yet been used in code.
Try adding somerandom.randint(1, 10)
Can you please attach a screenshot, I think that the problem is with the indentation between imports.
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 questionAsk a Question
731 491 924 answers to any question