Falied building wheel for pandas – M1 MACBOOK

  apple-m1, build, docker, pandas

When I tried to make the build of my project using Docker (docker-compose build), I got the following error :

> error: command 'gcc' failed: No such file or directory  
> ----------------------------------------   ERROR: Failed building wheel for pandas   Building wheel for PyYAML (setup.py): started  
> Building wheel for PyYAML (setup.py): finished with status 'done'  
> Created wheel for PyYAML:
> filename=PyYAML-5.3.1-cp39-cp39-linux_aarch64.whl size=44620
> sha256=d5f39bd88068bf5b14b031cc614082cd81915917db63e74cc462daa47ff215ff
> Stored in directory:
> /root/.cache/pip/wheels/69/60/81/5cd74b8ee068fbe9e04ca0d53148f28f5c6e2c5b177d5dd622
> Successfully built black PyYAML Failed to build pandas ERROR: Could
> not build wheels for pandas which use PEP 517 and cannot be installed
> directly ERROR: Service 'hermes' failed to build : The command
> '/bin/sh -c pip install -r requirements.txt' returned a non-zero code:
> 1

My first reaction it was tried to install requirements.txt file (pip3 install -r requirements.txt), and this requirement is already satisfied. How can I solve this pendency ?

My machine is a MacBook Pro (13-inch, M1, 2020)

Source: Docker Questions

LEAVE A COMMENT