python - 为 pypy 构建 pandas

标签 python pandas pypy

我无法在 osx 和 raspbian 上为 pypy 4.0.0 编译 pandas (0.17.0)。

这两种情况都失败了,但是原因不同:

树莓派:

pandas/lib.c:84937:76: error: ‘PyDateTime_Date’ undeclared (first use in this function)
    pandas/lib.c:84938:84: error: ‘PyDateTime_DateTime’ undeclared (first use in this function)
    error: command 'cc' failed with exit status 1

操作系统:

In file included from pandas/src/datetime_helper.h:3:
    /Users/sonium/Raspbrewry/venv-pypy/site-packages/numpy/core/include/numpy/arrayscalars.h:8:3: error: typedef redefinition with different types ('struct PyBoolScalarObject' vs 'struct PyBoolScalarObject')
    } PyBoolScalarObject;

我知道 pandas 不正式支持 pypy,但 pypy 不应该是一个直接替代品吗?

最佳答案

PyPy 目前不支持 Pandas。我们正在努力改善这种情况,但是从 pypy 4.0 开始,您不能直接在 pypy 下使用 pandas(但您可以尝试一些解决方案,如 pymetabiosis)

关于python - 为 pypy 构建 pandas,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33454556/

相关文章:

python - 如何改进 Python 中的这个循环以提高速度

python - 使用 Anaconda 安装本地包

python - 即使存在死锁,如何强制关闭 ProcessPoolExecutor

python - 我要 rolling_apply 吗?

python Pandas : fluent setter for DataFrame index?

python - 在 Linux 上安装和运行 pypy

javascript - 将 Python/Boo/Ruby 类语法编译为 C/C++/LLVM/Javascript 的工具(使用 JS ArrayBuffer 提高速度)

python - 如何在 PyPy 上使用 Biopython?

python - 不和谐用十六进制颜色创建角色(pycord)

Python 3 : Functions dependent on other functions, 缺少参数?