安装 matplotlib 提示with error code 1 in /tmp/pip-install-neumogwg/pillow/

背景

安装matplotlib的时候提示:

Command "/usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-neumogwg/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-record-dojlr1r5/install-record.txt --single-version-externally-managed --compile --user --prefix=" failed with error code 1 in /tmp/pip-install-neumogwg/pillow/

解决办法

python -m pip install --upgrade pip
python -m pip install --upgrade pillow

注意:
Pillow 6.2.0 now supports Python 3.8 and has prebuilt wheels available.
Make sure you're using Python 3.8.0 final or later with pip 19.2 or later.
电脑3.7也安装成功了

posted @ 2022-12-29 17:42  Tarzen  阅读(103)  评论(0编辑  收藏  举报