Home > front end >  why there is a yellow line underneath the import modules?
why there is a yellow line underneath the import modules?

Time:01-25

I see this is a problem but the program still runs. Can you point out where is the problem? I'm newbie to programming. Especially to python language.enter image description here

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 in models.py.

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