2017-04-19 335 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>