我无法在 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/