Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

VS code can't import module which is already installed [duplicate]

Inslalled module

VS code error message

I've already installed the module "pandas" through pip3, and it's visible through pip3 list. But VS code still showing the error message. I was trying to set up some breakpoints to test my code in VS code. It works fine while in the terminal.

like image 937
Rrobinvip Avatar asked Nov 14 '25 22:11

Rrobinvip


1 Answers

Have you selected the correct Python Interpreter inside of VSCode?

If you have the Python extension installed, you can go into your command palette (Ctrl+Shift+P or Cmd+Shift+P or F1), type in Python: Select Interpreter, select the correct environment and VSCode should be able to recognize it.

In case that's the issue :)

like image 102
roo1989 Avatar answered Nov 17 '25 20:11

roo1989



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!