When I install python3 matplotlib on centos, every time I install the dependent package pillow
, it will prompt failed with error code 1 in /tmp/pip-build-ea52hkd9/pillow/
error, as shown in the following figure:
My workaround was to run the following three commands in sequence:
sudo python3 -m pip install --upgrade pip
pip3 install pillow
pip3 install matplotlib