[英]How do I solve this valueerror while installing pyautogui?
Please note that this query is not the same as: How to install PyAutoGUI or how to solve ValueError in Python 请注意,该查询与以下查询不同: 如何安装PyAutoGUI或如何在Python中解决ValueError
I am working on an Ubuntu machine. 我在Ubuntu机器上工作。 I used the command pip install pyautogui .
我使用了命令pip install pyautogui 。 Everything goes well until I get this on the terminal:
一切顺利,直到我在终端上得到了:
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
You must first run pip install pillow
. 您必须先运行
pip install pillow
。 However, as of 0.9.34 of PyAutoGUI, you do not need to do this anymore and can just try running pip install pyautogui
但是,从PyAutoGUI的0.9.34开始,您不再需要这样做,可以尝试运行
pip install pyautogui
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.