[英]Install error for PIL/PILLOW in Pycharm
我試圖在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
您需要先安裝python開發工具
Python 2:
sudo apt-get install python-dev python-setuptools
Python 3:
sudo apt-get install python3-dev python3-setuptools
查看此SO答案中的其他要求
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.