小编los*_*pos的帖子

安装pandas的问题:"命令'llvm-gcc-4.2'失败,退出状态为1"

我想用Python 2.7和"sudo pip install pandas"在MAC OS X 10.7上安装pandas.我得到的一些输出:

Frameworks/Python.framework/Versions/2.7/include/python2.7 -c pandas/index.c -o build/temp.macosx-10.7-intel-2.7/pandas/index.o
    In file included from pandas/index.c:317:
    pandas/src/numpy_helper.h: In function ‘infer_type’:
    pandas/src/numpy_helper.h:32: error: ‘PyDatetimeArrType_Type’ undeclared (first use in this function)
    pandas/src/numpy_helper.h:32: error: (Each undeclared identifier is reported only once
    pandas/src/numpy_helper.h:32: error: for each function it appears in.)
    pandas/src/numpy_helper.h: In function ‘get_datetime64_value’:
    pandas/src/numpy_helper.h:53: error: ‘PyDatetimeScalarObject’ undeclared (first use in this function)
    pandas/src/numpy_helper.h:53: error: expected expression before ‘)’ token
    pandas/src/numpy_helper.h: In function ‘is_datetime64_object’:
    pandas/src/numpy_helper.h:84: error: ‘PyDatetimeArrType_Type’ undeclared (first use in this …
Run Code Online (Sandbox Code Playgroud)

python macos gcc numpy pandas

4
推荐指数
1
解决办法
2020
查看次数

标签 统计

gcc ×1

macos ×1

numpy ×1

pandas ×1

python ×1