更新:我现在建议使用
Anaconda安装科学的python栈。
pandas捆绑,可以使用conda轻松更新:
conda update pandas
它还与cython,scipy(通过pip安装是棘手的),statsmodels捆绑在一起,并为您管理这些包之间的依赖/关系。
值得注意的是,您不需要admin / sudo访问权限就可以在机器上安装Anaconda。
如果您没有使用Anaconda,推荐的方法是通过pip(在Mac和Windows上):
pip install pandas
在Linux上,您还可以在任何存储库中安装python-pandas,但请注意,您可能正在安装旧版的大pandas,理想情况下,您应该使用最新的稳定版本。
Installing from the git repository requires a recent installation of Cython as the cythonized C sources are no longer checked into source control. Released source distributions will contain the built C files. I recommend installing the latest Cython via easy_install -U Cython
Note that you will not be able to import pandas if you open an interpreter in the source directory unless you build the C extensions in place:
06002
没有编译hashtables.pyx(和其他一些cython文件),pandas无法导入它们。这些是pandas需要的(这是您的错误信息)。