使用pip安装matplotlib时报错:
![v2-48a07ac7d3b905f7093851a2ab67b81b_b.jpg](http://img-01.proxy.5ce.com/view/image?&type=2&guid=fb340d7c-2330-eb11-8da9-e4434bdf6706&url=https://pic4.zhimg.com/v2-48a07ac7d3b905f7093851a2ab67b81b_b.jpg)
![v2-91c17407739e539ee679d3e0fb64dba6_b.jpg](http://img-03.proxy.5ce.com/view/image?&type=2&guid=fb340d7c-2330-eb11-8da9-e4434bdf6706&url=https://pic3.zhimg.com/v2-91c17407739e539ee679d3e0fb64dba6_b.jpg)
![v2-60eb0731f089555e76f596413429084d_b.jpg](http://img-01.proxy.5ce.com/view/image?&type=2&guid=fb340d7c-2330-eb11-8da9-e4434bdf6706&url=https://pic2.zhimg.com/v2-60eb0731f089555e76f596413429084d_b.jpg)
解决方法:执行代码
sudo apt-get install build-essential
问题就这么轻松的解决了:
Installing collected packages: subprocess32, cycler, pytz, pyparsing, kiwisolver, matplotlib
Successfully installed cycler-0.10.0 kiwisolver-1.1.0 matplotlib-2.2.5 pyparsing-2.4.6 pytz-2019.3 subprocess32-3.5.4
哈哈哈哈。。。。