ImportError:vscode上没有名为pandas的模块,但在空闲或终端上没有错误

问题描述 投票:0回答:1

enter image description here

[当我尝试在vscode(Python环境)中导入pandas模块时。这发生过。但是我可以将熊猫导入IDLE或终端中。

当我运行python3 -m pip install pandas时,表明软件包已安装。

enter image description here

python
1个回答
0
投票

对于vscode,默认的python解释器是python2,您必须更改为python3

© www.soinside.com 2019 - 2024. All rights reserved.