我用pip来安装熊猫。
https://drive.google.com/file/d/1rIyN9Rg9szkdlQBj30t9Jnz9LmNuJw-j/view?usp=sharing
我可以在python2中导入它 https://drive.google.com/file/d/1VmaSGI6SRxXd6Vi1wJP_V0lpGbahkNim/view?usp=sharing。
但无法在 python3 中导入此库。
https://drive.google.com/file/d/1ju5EtgwRYN7Y4Nzgj-V1j3eM-LpoMbHr/view?usp=sharing
因为你已经安装了 python2 而不是 python3 的 pandas。pip3 install pandas
将为python3安装pandas。
您还需要为python3
安装熊猫,这是因为您的机器上同时具有python2
和python3
。
您可以使用 conda 或 pip 来安装熊猫,我对 pip 很熟悉,所以通过使用 pip 运行命令:
pip3 install pandas
然后运行python3
从壳牌python3
您应该能够导入熊猫作为导入熊猫