【发布时间】:2017-12-22 14:12:25
【问题描述】:
我正在尝试为 Robot Framework 安装 AutoIT 库。这是我下载库后看到的结果,将其解压缩到一个文件夹并运行python setup.py install:
Owner@Owner MINGW64 /c/users/owner/downloads/AutoItLibrary-1.1
$ python setup.py install
%SYSTEMROOT%\system32\regsvr32.exe /S C:\Python27\Lib\site-packages\AutoItLibrary\lib\AutoItX3.dll
Traceback (most recent call last):
File "setup.py", line 70, in <module>
subprocess.check_call(cmd, shell=True)
File "C:\Python27\lib\subprocess.py", line 186, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '%SYSTEMROOT%\system32\regsvr32.exe /S C:\Python27\Lib\site-packages\AutoItLibrary\lib\AutoItX3.dll' returned non-zero exit status 5
有人知道这个错误背后的原因吗?
【问题讨论】:
-
您是否尝试过在 Cygwin 或任何终端之外运行它?
-
这是 Git Bash。我刚刚尝试了 powershell 并得到了同样的错误。
标签: python windows python-2.7 pip autoit