@安装matplotlib时的报错
Running setup.py bdist_wheel for pillow … error中间报错:
Failed building wheel for pillow
Running setup.py clean for pillow
Failed to build pillow
Installing collected packages: cycler, pillow, pyparsing, six, python-dateutil, kiwisolver, numpy, matplotlib
最后报错:
Command “/usr/bin/python3 -u -c “import setuptools, tokenize;file=‘/tmp/pip-build-gjgarc8h/pillow/setup.py’;f=getattr(tokenize, ‘open’, open)(file);code=f.read().replace(‘rn’, ‘n’);f.close();exec(compile(code, file, ‘exec’))” install --record /tmp/pip-jec88poc-record/install-record.txt --single-version-externally-managed --compile --user --prefix=” failed with error code 1 in /tmp/pip-build-gjgarc8h/pillow/
sudo apt-get install libjpeg-dev zlib1g-dev
成功解决!!



