enter image description here
[当我尝试在vscode(Python环境)中导入pandas模块时。这发生过。但是我可以将熊猫导入IDLE或终端中。
当我运行python3 -m pip install pandas时,表明软件包已安装。
python3 -m pip install pandas
对于vscode,默认的python解释器是python2,您必须更改为python3