【问题标题】:Unable to install pyautogui无法安装 pyautogui
【发布时间】:2018-07-19 15:43:50
【问题描述】:

我正在尝试在 ubuntu 18.04 上安装 Pyautogui,但我不断收到以下错误消息:

$pip3 install pyautogui

Collecting pyautogui
  Using cached https://files.pythonhosted.org/packages/45/70/c5d340fadb06106135b7fe9677fc6d275f3cd7f7e6f896316c4cfe6c022c/PyAutoGUI-0.9.37.tar.gz
Collecting pymsgbox (from pyautogui)
  Using cached https://files.pythonhosted.org/packages/b6/65/86379ede1db26c40e7972d7a41c69cdf12cc6a0f143749aabf67ab8a41a1/PyMsgBox-1.0.6.zip
Collecting PyTweening>=1.0.1 (from pyautogui)
  Using cached https://files.pythonhosted.org/packages/b9/f8/c32a58d6e4dff8aa5c27e907194d69f3b57e525c2e4af96f39c6e9c854d2/PyTweening-1.0.3.zip
Collecting Pillow (from pyautogui)
  Using cached https://files.pythonhosted.org/packages/d1/24/f53ff6b61b3d728b90934bddb4f03f8ab584a7f49299bf3bde56e2952612/Pillow-5.2.0-cp36-cp36m-manylinux1_x86_64.whl
Collecting pyscreeze (from pyautogui)
  Using cached https://files.pythonhosted.org/packages/c9/6e/e175fda37d76d7846a6cda8a4364dfd7c2d343139b0716c4f03194d14933/PyScreeze-0.1.17.tar.gz
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmp/pip-build-6aakksn1/pyscreeze/setup.py", line 10, in <module>
        with open("README.md", "r") as fh:
    FileNotFoundError: [Errno 2] No such file or directory: 'README.md'

    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-6aakksn1/pyscreeze/

有人可以帮帮我吗?

【问题讨论】:

    标签: python pip pyautogui


    【解决方案1】:

    PyScreez 维护者在这里。这是由打包错误引起的,该错误已在 0.1.18 中修复。如果你安装了 pyautogui,它现在应该可以工作了,不过你可能必须先在你的机器上删除 the pip cache

    【讨论】:

      【解决方案2】:

      pyscreez 的新版本 (v0.1.17) 无法安装为 pyautogui 的依赖项。

      作为一种解决方法,尝试先安装 pyscreez 的最后一个工作版本,然后在此 pyautogui 之后:

      pip install pyscreeze<=0.1.14
      pip install PyAutoGUI
      

      我已经为此问题创建了一张新票 https://github.com/asweigart/pyscreeze/issues/37

      【讨论】:

      • 我之前已经尝试过了,但我一直收到同样的消息!
      • 使用 pip list 检查您安装的 pyscreeeze 版本,或者尝试在新的 virtualenv 中同时安装
      • 点子列表显示“PyScreez (0.1.14)”。但我要试试 virtualenv,谢谢
      • 嗯...你在你的问题中使用了 pip3,也许你的默认 Python 版本不同?
      • 我想我设法解决了安装 PyautoGui 0.9.17 版的这个问题。任何后期版本都对我不起作用并返回相同的错误消息。
      猜你喜欢
      • 1970-01-01
      • 2020-09-19
      • 2016-04-29
      • 2021-11-22
      • 1970-01-01
      • 2023-02-04
      • 2020-10-04
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多