AutoItLibrary安装走过的坑

安装这个包的时候,你的robot framework基本能运行,在此不再多写了;

在安装AutoItLibrary需要安装pythonwin32、AutoIt V3;根据系统选择相应的位数安装;下载的压缩包也要与系统的位数一致,不然会出错;

安装AutoItLibrary报错

D:\Program Files\bake\AutoItLibrary-1.1_x64>python setup.py install
Don't think we need to unregister the old one...
%SYSTEMROOT%\system32\regsvr32.exe /S D:\Program Files\DailyTools\Python27\Lib\site-packages\AutoItLibrary\lib\AutoItX3.dll
python D:\Program Files\DailyTools\Python27\Lib\site-packages\win32com\client\makepy.py D:\Program Files\DailyTools\Python27\Lib\site-packages\AutoItLibrary\lib\AutoItX3.dll
python: can't open file 'D:\Program': [Errno 2] No such file or directory
Traceback (most recent call last):
  File "setup.py", line 81, in <module>
    subprocess.check_call(cmd)
  File "D:\Program Files\DailyTools\Python27\lib\subprocess.py", line 190, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command 'python D:\Program Files\DailyTools\Python27\Lib\site-packages\win32com\client\makepy.py D:\Program Files\DailyTools\Python27\Lib\site-packages\AutoItLibrary\lib\AutoItX3.dll' returned non-zero exit status 2

 解决方法步骤:(注意所有的命令都是在管理员模式下进行) 

  1、在AutoItLibrary解压文件下找到setup.py,注释subprocess.check_call(cmd, shell=True),subprocess.check_call(cmd);不要忘记保存;

  2、用管理员打开cmd命令,进入AutoIt V3/AutoItX的安装目录,可以看到AutoItX3_x64.dll的文件;

      执行regsvr32 /u AutoItX3.dll这里不会有任何提示,应该表示注册成功;

      然后再执行反注册regsvr32 /u AutoItX3.dll如果成功,会弹窗提示反注册成功的

3、管理员命令模式,进入AutoItLibrary的解压文件,执行 python setup.py install

4、如果报的错还是和上面的问题一样,那么就反注册

      先执行regsvr32 /s AutoItX3.dll,在执行regsvr32 /u AutoItX3.dll

5、再次进入AutoItLibrary的解压文件,执行 python setup.py install

6、安装成功检验,输入pip list 如果有AutoItLibrary,表明你安装成功了

参考文章:http://lijunwei1228ok.blog.163.com/blog/static/97383797201401010247599/

安装这个也花了一些时间,找压缩包、下载安装包很不容易,因此为了方便大家学习,特意将安装包分享给大家

我的是win10 64  python27

百度网盘链接:https://pan.baidu.com/s/1GN3XLonLTTcBlN13bGb64Q   密码:7p1o

  

 

转载于:https://www.cnblogs.com/JuanZi-Sunny/p/9203639.html

  • 0
    点赞
  • 6
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值