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:xxxxxPythonOpenTXT.py
正常打开TXT文本就代表成功。