pip3 install matplotlib
报错:
Command "/usr/bin/python3 -u -c "import setuptools, tokenize; __file__='/tmp/pip-build-qp5puacl/Pillow/setup.py'; f=getattr(tokenize, 'open', open)(__file__); code=f.read().replace('\r\n', '\n'); f.close(); exec(compile(code, __file__, 'exec')) "install --record /tmp/pip-dkt82_3t-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-qp5puacl/Pillow/
解决办法
pip3 install --upgrade pip setuptools wheel
python3 -m pip install Pillow
pip3 install matplotlib