我曾尝试在pycharm中安装PIL和PILLOW包,但是当我按照建议从终端尝试时,我遇到了一些错误。我该如何解决?
错误:
ValueError: jpeg is required unless explicitly disabled using --disable-jpeg, aborting
接下来是:
Command "/usr/bin/python3 -c "import setuptools, tokenize;__file__='/tmp/pip-build-v9j6b44w/Pillow/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-im6_90gt-record/install-record.txt --single-version-externally-managed --compile --user" failed with error code 1 in /tmp/pip-build-v9j6b44w/Pillow
答案 0 :(得分:3)
您需要先安装python开发工具
Python 2:
sudo apt-get install python-dev python-setuptools
Python 3:
sudo apt-get install python3-dev python3-setuptools
请参阅此SO answer
中的其他要求