【问题标题】:Cannot install PyAutoGUI无法安装 PyAutoGUI
【发布时间】:2020-08-02 18:55:10
【问题描述】:

我尝试安装 PyAutoGUI-0.9.35 但在同一文件夹中运行 cmd 时出现以下问题:

我的输入:pip install PyAutoGUI-0.9.35

输出:

收集 PyAutoGUI-0.9.35 找不到满足 PyAutoGUI-0.9.35 要求的版本(来自版本:) 找不到 PyAutoGUI-0.9.35 的匹配发行版

然后我尝试从 PyAutoGUI 文件夹运行 setup.py 文件,但这次出现了:

usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [opts2_opts]...] or: setyp.py --help [cmd1 cmd2...] or: setup.py --help-commands or: setup.py cmd --help

错误:未提供命令

窗口立即关闭,所以我不得不快速截屏

谁能告诉我我做错了什么?我运行python 3.6,pyautogui需要的版本是3.4,我也运行Win 10。

【问题讨论】:

  • 你试过“pip install pyautogui”吗?
  • @Ajax1234 成功了,谢谢。

标签: python installation pyautogui


【解决方案1】:

试试:

pip install pyautogui==0.9.35

这是我在 cmd 会话中发生的情况:

Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation.  All rights reserved.

C:\Windows\System32>pip install PyAutoGUI-0.9.35
Collecting PyAutoGUI-0.9.35
  Could not find a version that satisfies the requirement PyAutoGUI-0.9.35 (from
 versions: )
No matching distribution found for PyAutoGUI-0.9.35

C:\Windows\System32>pip install pyautogui==0.9.35
Collecting pyautogui==0.9.35
  Downloading PyAutoGUI-0.9.35.zip (57kB)
    100% |################################| 61kB 223kB/s
Collecting pymsgbox (from pyautogui==0.9.35)
  Downloading PyMsgBox-1.0.6.zip
Collecting PyTweening>=1.0.1 (from pyautogui==0.9.35)
  Downloading PyTweening-1.0.3.zip
Requirement already satisfied: Pillow in c:\python35\lib\site-packages (from pya
utogui==0.9.35)
Collecting pyscreeze (from pyautogui==0.9.35)
  Downloading PyScreeze-0.1.9.tar.gz
Requirement already satisfied: olefile in c:\python35\lib\site-packages (from Pi
llow->pyautogui==0.9.35)
Building wheels for collected packages: pyautogui, pymsgbox, PyTweening, pyscree
ze
  Running setup.py bdist_wheel for pyautogui ... done
  Stored in directory: C:\Users\me\AppData\Local\pip\Cache\wheels\28\
3b\07\64bee61ca73d56260a47d6b49692e7f217a69568aae2117167
  Running setup.py bdist_wheel for pymsgbox ... done
  Stored in directory: C:\Users\me\AppData\Local\pip\Cache\wheels\c1\
cb\86\c3c2e3c39f9f0d015cf0f94ab6ca41e14f8c2083846e82b91d
  Running setup.py bdist_wheel for PyTweening ... done
  Stored in directory: C:\Users\me\AppData\Local\pip\Cache\wheels\04\
86\59\70a93cd378740b5266c51e11c36ee3fc8b9dfef4b3bc72fd82
  Running setup.py bdist_wheel for pyscreeze ... done
  Stored in directory: C:\Users\me\AppData\Local\pip\Cache\wheels\6a\
f7\db\9521ae30a53499f6c9024df5f5a605d56b6e6ad0c2d48dcb42
Successfully built pyautogui pymsgbox PyTweening pyscreeze
Installing collected packages: pymsgbox, PyTweening, pyscreeze, pyautogui
Successfully installed PyTweening-1.0.3 pyautogui-0.9.35 pymsgbox-1.0.6 pyscreez
e-0.1.9

C:\Windows\System32>

【讨论】:

    【解决方案2】:

    1.方法

    如果您的 Python 未更新,请更新您的 Python,然后安装 pyaudiogui

    2。方法

    pip install pyautogui==0.9.35
    

    【讨论】:

      猜你喜欢
      • 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
      相关资源
      最近更新 更多