请注意,此查询与以下内容不同: 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
答案 0 :(得分:0)
您必须先运行pip install pillow
。但是,从PyAutoGUI的0.9.34开始,您不再需要这样做了,只需尝试运行pip install pyautogui