简体   繁体   中英

VS code can't import module which is already installed

安装模块

VS 代码错误信息

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.

Have you selected the correct Python Interpreter inside of VSCode?

If you have the Python extension installed, you can go into your command prompt, type in Python: Select Interpreter , select the correct environment and VSCode should be able to recognize it.

In case that's the issue :)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM