Home > Software design >  Yellow line showing under import module statements
Yellow line showing under import module statements

Time:01-25

I see this is a problem but the program still runs. Can you point out where is the problem?Screenshot. I can't solve this on my own even if I search it online. I need a finger to point out where can I solve this problem.

CodePudding user response:

Those yellow lines means that the imported modules cannot be located. This probably means that you downloaded the modules into a virtual environment and the modules are not installed globally. You are probably running the script with the correct virtual environment. Open your command palette with ctrl shift p and choose the correct python interpreter

CodePudding user response:

For me, modules who have a yellow line under them are ones that your program doesn't need. If I import a module that my program doesn't need functions from, a yellow line will show under it.

  • Related