wxPython的机器人框架安装问题 [英] Robot framework installation issue for wxPython
问题描述
我正在尝试安装机器人框架,但遇到 wxPython 版本的错误.当我在 cmd 中输入ride.py 时,会显示一条错误消息:
I am trying to install robot framework but getting an error for wxPython version. When I type ride.py in cmd then an error message is shown:
"C:\Users\snar13>ride.py错误的 wxPython 版本.您需要安装支持 Unicode 的 wxPython 2.8.12.1 才能运行 RIDE.wxPython 2.8.12.1 可以从 http://sourceforge.net/projects/wxpytho 下载n/files/wxPython/2.8.12.1/"
"C:\Users\snar13>ride.py Wrong wxPython version. You need to install wxPython 2.8.12.1 with Unicode support to run RIDE. wxPython 2.8.12.1 can be downloaded from http://sourceforge.net/projects/wxpytho n/files/wxPython/2.8.12.1/"
我已经完成了以下步骤:
I have done following steps:
- 安装了 python 2.7 版,设置了一个环境变量,并在 cmd 中输入python –version"并输出Python 2.7.12"进行验证.
- 使用 PIP 命令安装机器人框架,即pip install robotsframework",并通过在 cmd 中输入pybot --version"和输出Robot Framework 3.0(Win32 上的 Python 2.7.12)"进行验证
- 使用 PIP 命令安装 Selenium2Library,即pip install robotsframework-selenium2library"
- 使用 PIP 命令 pip install –U selenium 安装 Selenium 库.
- 为 Python 2.7 安装了 wxPython 3.0.2.0
- 已安装 Robot Framework IDE – 使用 PIP 命令进行 RIDE,即pip install robotsframework-ride"
- 当我尝试通过在 cmd 中键入ride.py"来打开 RIDE 框架时,它会抛出一个错误,即 C:\Users\snar13>ride.py错误的 wxPython 版本.您需要安装支持 Unicode 的 wxPython 2.8.12.1 才能运行 RIDE.wxPython 2.8.12.1 可以从 http://sourceforge.net/projects/wxpytho 下载n/files/wxPython/2.8.12.1/"我尝试运行多个版本的 wxPython,但显示相同的错误:wxPython 版本:
- wxPython2.8-win64-unicode-2.8.12.1-py26
- wxPython2.8-win64-unicode-2.8.12.1-py27
- wxPython3.0-win32-3.0.2.0-py27
- wxPython3.0-win64-3.0.2.0-py27系统详情:
- 操作系统:Windows 7 Enterprise 64 位
- Installed python version 2.7, set an environment variable and verified in cmd by typing "python –version" with output "Python 2.7.12".
- Installed Robot framework with PIP command i.e. "pip install robotframework" and verified in cmd by typing "pybot --version" with output "Robot Framework 3.0 (Python 2.7.12 on win32)"
- Installed Selenium2Library with PIP command i.e. "pip install robotframework-selenium2library"
- Installed Selenium library with PIP command pip install –U selenium.
- Installed wxPython 3.0.2.0 for Python 2.7
- Installed Robot Framework IDE – RIDE with PIP command i.e. "pip install robotframework-ride"
- When I try to open RIDE framework by typing "ride.py" in cmd it throws an error i.e. "C:\Users\snar13>ride.py Wrong wxPython version. You need to install wxPython 2.8.12.1 with Unicode support to run RIDE. wxPython 2.8.12.1 can be downloaded from http://sourceforge.net/projects/wxpytho n/files/wxPython/2.8.12.1/" I tried and run multiple versions of wxPython but same error is shown: wxPython version:
- wxPython2.8-win64-unicode-2.8.12.1-py26
- wxPython2.8-win64-unicode-2.8.12.1-py27
- wxPython3.0-win32-3.0.2.0-py27
- wxPython3.0-win64-3.0.2.0-py27 System Details:
- OS: Windows 7 Enterprise 64 bit
推荐答案
wxPython 2.8.12.1 架构必须与 Python 安装相匹配.看来需要安装32位版本,大概是wxPython2.8-win32-unicode-2.8.12.1-py27.
The wxPython 2.8.12.1 architecture must match the Python installation. Looks like you need to install the 32bit version, probably wxPython2.8-win32-unicode-2.8.12.1-py27.
这篇关于wxPython的机器人框架安装问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!