【问题标题】:How do I solve this valueerror while installing pyautogui?安装 pyautogui 时如何解决这个值错误?
【发布时间】: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 怎么样?
  • 消息显示问题出在PillowJPEG。也许找到这个问题的答案。可能你必须使用apt-get 来安装一些 jpeg 库(C/C++)
  • sudo apt-get install libjpeg-dev

标签: python ubuntu pip jpeg


【解决方案1】:

您必须先运行pip install pillow。但是,从 PyAutoGUI 的 0.9.34 开始,您不再需要这样做,只需尝试运行 pip install pyautogui

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2022-06-12
    • 2021-04-12
    • 2020-08-19
    • 1970-01-01
    • 2021-11-02
    • 2021-12-23
    • 1970-01-01
    相关资源
    最近更新 更多