Home > Back-end >  How can I fix this Import problem with vsCode
How can I fix this Import problem with vsCode

Time:02-11

I'm having a little problem. I would like to import bs4 and request on my vscode file but I can't in tells me that there is a missign module source. I tried to change the interpreter but when I do it only one of them is recognized. So if anyone knows how I can import both of them I would gradely appreciate, thanks.

The error message that I get

CodePudding user response:

Firstly install projected related extension then try to import.

CodePudding user response:

Take a look at this post regarding the same subject. Also this guide could hold the answer to your problem.

You may have installed the libraries inside a virtual environment and you are using a python interpreter that is not inside the environment.

Edit: It could be that just one of your libraries is inside (or outside) the environment.

  • Related