首页 > 解决方案 > Autoit 安装 whit Python 2.7 和 Windows 64 位

问题描述

我尝试像文档一样安装 autoit:

pip install -U pyautoit

但出现 32 位错误:

WindowsError: [Error 193] %1 is not a valid Win32 application

如何在 64 位上安装它?

标签: pythondjangoautoit

解决方案


如果你的windows版本是64版本,直接安装会报错。只需按照以下说明进行操作。首先你需要下载autoit zip文件,然后解压。您需要在第 15 行的 autoit.py 中更改一些内容,将 dll = "AutoItX3.dll" 更改为 dll = "AutoItX3_x64.dll",然后使用 python setup.py install ,你会成功

来自:https ://github.com/jacexh/pyautoit/issues/24


推荐阅读