【问题标题】:Can't install pyautogui due to psyscreeze FilenotFoundError: 'README.md'由于 psyscreez FilenotFoundError 无法安装 pyautogui:'README.md'
【发布时间】:2018-07-19 12:23:33
【问题描述】:

现在安装了 Anaconda,所以 python 3.6 可以安装其他软件包,但由于某种原因不能 pyautogui。我已经安装了枕头。 由于工作场所的原因,我必须使用这些“受信任的主机”和“代理”。

(base) C:\>pip install --proxy [snipped website] --trusted-host pypi.
python.org --trusted-host files.pythonhosted.org --trusted-host pypi.org pyautogui
Collecting pyautogui
  Downloading https://files.pythonhosted.org/packages/45/70/c5d340fadb06106135b7
fe9677fc6d275f3cd7f7e6f896316c4cfe6c022c/PyAutoGUI-0.9.37.tar.gz (47kB)
    100% |¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦| 51kB 379kB/s
Collecting pymsgbox (from pyautogui)
  Downloading https://files.pythonhosted.org/packages/b6/65/86379ede1db26c40e797
2d7a41c69cdf12cc6a0f143749aabf67ab8a41a1/PyMsgBox-1.0.6.zip
Collecting PyTweening>=1.0.1 (from pyautogui)
  Downloading https://files.pythonhosted.org/packages/b9/f8/c32a58d6e4dff8aa5c27
e907194d69f3b57e525c2e4af96f39c6e9c854d2/PyTweening-1.0.3.zip
Requirement already satisfied: Pillow in c:\users\krmeszar\appdata\local\continu
um\anaconda3\lib\site-packages (from pyautogui) (5.1.0)
Collecting pyscreeze (from pyautogui)
  Downloading https://files.pythonhosted.org/packages/c9/6e/e175fda37d76d7846a6c
da8a4364dfd7c2d343139b0716c4f03194d14933/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 "C:\Users\[snipped name]\AppData\Local\Temp\pip-install-jmkbzjm3\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 C:\Users\[snipped name]
\AppData\Local\Temp\pip-install-jmkbzjm3\pyscreeze\

认为可能是 pyscreez 的问题,但也无法安装。

(base) C:\>pip install --proxy [snipped website] --trusted-host pypi.python.org --trusted-host files.pythonhosted.org --trusted-host pypi.org pyscreeze
Collecting pyscreeze
  Downloading https://files.pythonhosted.org/packages/c9/6e/e175fda37d76d7846a6c
da8a4364dfd7c2d343139b0716c4f03194d14933/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 "C:\Users\[snipped name]\AppData\Local\Temp\pip-install-ymkt05sy\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 C:\Users\[snipped  name]\AppData\Local\Temp\pip-install-ymkt05sy\pyscreeze\

知道解决方案是什么吗?

【问题讨论】:

    标签: python-3.x pip windows-7-x64 pyautogui


    【解决方案1】:

    pyscreez 新版本 (v0.1.17) 安装失败。

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

    pip install pyscreeze==0.1.14
    pip install PyAutoGUI
    

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

    编辑: 新版本的pyscreez好像可以用了,其实你可以重新安装pyautogui

    pip install -U pyautogui
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2020-09-19
      • 2016-04-29
      • 2021-11-22
      • 2020-09-22
      • 1970-01-01
      • 2019-10-01
      • 1970-01-01
      相关资源
      最近更新 更多