且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何解决 pandas 导入错误?

更新时间:2021-10-10 05:32:03

Pandas 的部分代码是用 C 编写的,以使其运行得更快.如果您尝试手动安装熊猫,则需要构建它.尝试在此处使用 miniconda 包管理器重新安装它:http://conda.pydata.org/miniconda.html

Pandas has portions of its code written in C to make it run faster. If you tried to install pandas manually you would need to build it. Try reinstalling it with miniconda package manager here: http://conda.pydata.org/miniconda.html

然后你就可以做

conda install pandas

下面的链接中有关于如何操作的非常简单的说明.只需执行 ctrl-f miniconda 即可找到讨论它的部分

There are very simple instructions on how to do it in the link below. Just do ctrl-f miniconda to find the section that talks about it

http://pandas.pydata.org/pandas-docs/dev/安装.html