如何在安装pyautogui时解决此值错误?

2024-04-23 14:31:22 发布

您现在位置:Python中文网/ 问答频道 /正文

请注意,此查询不同于: How to install PyAutoGUIhow 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

Tags: installpiptoinpybuildsetuprecord