请注意,此查询不同于: 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
您必须首先运行
pip install pillow
。但是,从PyAutoGUI的0.9.34开始,您不再需要这样做了,可以尝试运行pip install pyautogui
相关问题 更多 >
编程相关推荐