Skip to content

Installation of pandas fails due to compilation error #32114

Closed
@mhwombat

Description

@mhwombat

Code Sample, a copy-pastable example if possible

#  python --version
Python 3.9.0a3
# pip3 install pandas --log amy.log

results in the error shown below. (The full installation log: amy.log)

numpy/random/mtrand/mtrand.c:43635:34: error: 'PyTypeObject' {aka 'struct _typeobject'} has no member named 'tp_print'; did you mean 'tp_dict'?

Problem description

The installation fails. I have searched the issues for "tp_print" and "mtrand.c", but I haven't found any mention of this particular error.

Expected Output

The installation should succeed.

Output of pd.show_versions()

Not applicable because pandas won't install, but here are the packages I do have installed.

#  pip3 list
Package    Version
---------- -------
numpy      1.18.1 
pip        20.0.2 
scipy      1.3.2  
setuptools 45.1.0 
wheel      0.34.2

Note: I am doing all this from a docker image using alpine linux, but I don't think that's the cause of this problem.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions