pyautogui install,,This is a
pyautogui install,,This is a
This is a quickstart reference to using PyAutoGUI. PyAutoGUI is cross-platform GUI automation module that works on Python 2 & 3. You can control the mouse and keyboard as well as perform basic image recognition to automate tasks on your computer.All the keyword arguments in the examples on this page are optional.
>> import pyautogui
PyAutoGUI works on Windows/Mac/Linux and on Python 2 & 3. Install from PyPI with pip install pyautogui.
But this install may got issue as below:
===========================================
Traceback (most recent call last):
File "<string>", line 1, in <module> File "C:\Users\bluo001\AppData\Local\Temp\pip-build-qm89vbnh\pillow\setup.
py", line 814, in <module>
raise RequiredDependencyException(msg)__main__.RequiredDependencyException:The headers or library files could not be found for zlib,a required dependency when compiling Pillow from source.Please see the install instructions at: https://pillow.readthedocs.io/en/latest/installation.html----------------------------------------Command "C:\Python34\python.exe -c "import setuptools, tokenize;__file__=‘C:
\Users\bluo001\AppData\Local\Temp\pip-build-qm89vbnh\pillow\setup.py‘;ex
ec(compile(getattr(tokenize, ‘open‘, open)(file).read().replace(‘\r\n‘, ‘\n‘
), file, ‘exec‘))" install --record C:\Users\bluo001\AppData\Local\Temp\pip-
e4kwj6ag-record\install-record.txt --single-version-externally-managed --compile
" failed with error code 1 in C:\Users\bluo001\AppData\Local\Temp\pip-build-qm89
vbnh\pillow
C:\Python34>
At this time, you need install pillow seperately as below:
C:\Python34>easy_install pillow
Searching for pillow
Reading https://pypi.python.org/simple/pillow/
C:\Python34\lib\site-packages\pkg_resources__init__.py:2510: PEP440Warning: ‘Pi
llow-3.1.0 (rc1)‘ is being parsed as a legacy, non PEP 440, version. You may fin
d odd behavior and sort order. In particular it will be sorted as less than 0.0.
It is recommend to migrate to PEP 440 compatible versions.
PEP440Warning,
Best match: Pillow 5.3.0
Downloading https://files.pythonhosted.org/packages/57/05/7f6021718beb28ea5133cc
c8ee06800f424358a595524cb0191ff97ad800/Pillow-5.3.0-py3.4-win32.egg#sha256=a844b
5d8120f99fb7cd276ff544ac5bd562b0c053760d59694e6bf747c6ca7f5
Processing Pillow-5.3.0-py3.4-win32.egg
Moving Pillow-5.3.0-py3.4-win32.egg to c:\python34\lib\site-packages
Adding Pillow 5.3.0 to easy-install.pth file
Installed c:\python34\lib\site-packages\pillow-5.3.0-py3.4-win32.egg
Processing dependencies for pillow
Finished processing dependencies for pillow
C:\Python34>pip install pyautogui
You are using pip version 6.0.8, however version 18.1 is available.
You should consider upgrading via the ‘pip install --upgrade pip‘ command.
Collecting pyautogui
Using cached https://files.pythonhosted.org/packages/69/81/a8f44c4b613717c25e0
cdabf405e942fc7c7bcedf3198c58c79fdbababc0/PyAutoGUI-0.9.38.tar.gz
C:\Python34\lib\distutils\dist.py:260: UserWarning: Unknown distribution opt
ion: ‘long_description_content_type‘
warnings.warn(msg)
Collecting pymsgbox (from pyautogui)
Using cached https://files.pythonhosted.org/packages/b6/65/86379ede1db26c40e79
72d7a41c69cdf12cc6a0f143749aabf67ab8a41a1/PyMsgBox-1.0.6.zip
Collecting PyTweening>=1.0.1 (from pyautogui)
Using cached https://files.pythonhosted.org/packages/b9/f8/c32a58d6e4dff8aa5c2
7e907194d69f3b57e525c2e4af96f39c6e9c854d2/PyTweening-1.0.3.zip
Requirement already satisfied (use --upgrade to upgrade): Pillow in c:\python34\
lib\site-packages\pillow-5.3.0-py3.4-win32.egg (from pyautogui)
Requirement already satisfied (use --upgrade to upgrade): pyscreeze in c:\python
34\lib\site-packages (from pyautogui)
Installing collected packages: PyTweening, pymsgbox, pyautogui
Running setup.py install for PyTweening
Running setup.py install for pymsgbox
Running setup.py install for pyautogui
C:\Python34\lib\distutils\dist.py:260: UserWarning: Unknown distribution opt
ion: ‘long_description_content_type‘
warnings.warn(msg)
Successfully installed PyTweening-1.0.3 pyautogui-0.9.38 pymsgbox-1.0.6
C:\Python34>
pyautogui install
相关内容
- VS2013中Python学习笔记[环境搭建],,前言 Python
- python:for循环,,for循环可以遍历任
- Ubuntu系统下简单安装python解释器,,1、首先下载pyth
- python3+Robot Framework+PyCharm自动化测试框架设计,,关于自
- 使用python检测wifi中指定ip,并执行预设命令--手机连接
- Python中for else和while else语句学习心得,,先比较两段代码
- python解析pcap文件中的http数据包,,使用scapy、sc
- python添加默认模块搜索路径,,怎么样把自己写的模块
- python dir(__builtins__),,[‘Arithmet
- Python生成词云,,1 概述利用Pyth
评论关闭