首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >无法安装PyAutoGUI

无法安装PyAutoGUI
EN

Stack Overflow用户
提问于 2017-04-20 03:54:14
回答 2查看 6.4K关注 0票数 0

我尝试安装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

错误:未提供命令

窗户立即关闭,所以我不得不快速截图。

有人能告诉我我哪里做错了吗?我运行的是python3.6,pyautogui需要的版本是3.4,我也运行win10。

EN

回答 2

Stack Overflow用户

发布于 2017-04-20 05:38:12

尝试:

代码语言:javascript
复制
pip install pyautogui==0.9.35

下面是我在cmd会话中这样做时发生的情况:

代码语言:javascript
复制
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>
票数 1
EN

Stack Overflow用户

发布于 2020-08-02 18:16:07

1.方法

如果您的Python没有更新,那么更新您的Python,然后安装pyaudiogui

2.方法

代码语言:javascript
复制
pip install pyautogui==0.9.35
票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/43504934

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档