【发布时间】:2016-01-26 05:04:26
【问题描述】:
请注意,此查询不同于: How to install PyAutoGUI 或者 how to solve ValueError in Python
我正在使用 Ubuntu 机器。我使用了命令 pip install pyautogui。一切都很顺利,直到我在终端上得到这个:
File "/tmp/pip-build-gXkSEJ/Pillow/setup.py", line 516, in build_extensions
(f, f))
ValueError: jpeg is required unless explicitly disabled using --disable-jpeg, aborting
----------------------------------------
Cleaning up...
Command /usr/bin/python -c "import setuptools, tokenize;__file__='/tmp/pip-build-gXkSEJ/Pillow/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-d_80Eq-record/install-record.txt --single-version-externally-managed --compile --user failed with error code 1 in /tmp/pip-build-gXkSEJ/Pillow
Storing debug log for failure in /tmp/tmpHnGt1t
【问题讨论】:
-
easy_install pyautogui怎么样? -
消息显示问题出在
Pillow和JPEG。也许找到这个问题的答案。可能你必须使用apt-get来安装一些 jpeg 库(C/C++) -
sudo apt-get install libjpeg-dev