pip install pywinauto

 

 

 

 

pip install pywinauto

ERROR: Could not find a version that satisfies the requirement six (from pywinauto) (from versions: none)
ERROR: No matching distribution found for six (from pywinauto)
WARNING: You are using pip version 19.2.3, however version 20.0.2 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' command.
pip install six

 

 

测试是否成功安装

新建一个 文件  OpenTXT.py,输入:

from pywinauto.application import Application
app = Application(backend="uia").start("notepad.exe")

命令行下:

 python D:\xxxxx\Python\OpenTXT.py

 

正常打开TXT文本就代表成功。

posted @ 2020-03-23 15:41  纵一苇之所如-  阅读(1083)  评论(0)    收藏  举报