Asrapian
Asrapian

Reputation: 13

importing lib failed (python) after installing lib with pip

Hi i wanted to try out vs code for writing python. previously I used to use spyder and I had no problem with that but in vs code after I installed a lib using pip. I can't use the lib and I get an import error. actually the problem is global when I use pip in my terminal to install a lib I get requirements already satisfied msg but after importing it in my code I still get the import error!

Upvotes: 0

Views: 187

Answers (1)

Steven-MSFT
Steven-MSFT

Reputation: 8411

Which python interpreter you selected in the VSCode?

enter image description here

It looks like you have installed the packages into the global python environment, but in the VSCode you have not selected that environment.

Upvotes: 1

Related Questions