2017-04-19 302 views
0

我尝试安装PyAutoGUI-0.9.35,但在同一个文件夹中运行CMD时,下面就来了:无法安装PyAutoGUI

我输入:PIP安装PyAutoGUI-0.9.35

输出:

收集PyAutoGUI-0.9.35 找不到满足要求PyAutoGUI-0.9.35(从版本:)版本 未找到匹配的分布PyAutoGUI-0.9.35

我又试图runni NG从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,我也跑赢10

+1

有你只是尝试了“pip install pyautogui”? – Ajax1234

+0

@ Ajax1234工作,谢谢。 – ChrisCroissant

回答

0

尝试:

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>