如何在Windows上安装robotframework RIDE?

时间:2016-03-28 09:34:14

标签: robotframework

我正在尝试从几天开始安装机器人框架RIDE,我尝试跟踪我发现谷歌搜索的所有帖子,但仍然面临一些问题。以下是我遵循的事情,并提出来:

  1. 我已经成功安装了python2.7 ---因为我在执行python时获得了版本--version

  2. 我还使用pip install robot-framework

  3. 安装了机器人框架
  4. 还有,wxpython

  5. 我尝试从这个website下载机器人框架,但是当我解压缩它时,我无法找到任何可执行文件。我也试过用pip来安装,就是pip install robotframework ride,并得到以下错误:

    C:\Python27>pip install robotframework ride
    You are using pip version 7.0.1, however version 8.1.1 is available.
    You should consider upgrading via the 'pip install --upgrade pip' command.
    Requirement already satisfied (use --upgrade to upgrade): robotframework in c:\p
    ython27\lib\site-packages
    Collecting ride
        Retrying (Retry(total=4, connect=None, read=None, redirect=None)) after connec
    tion broken by 'ConnectTimeoutError(<pip._vendor.requests.packages.urllib3.conne
    ction.VerifiedHTTPSConnection object at 0x030C6A30>, 'Connection to pypi.python.
    org timed out. (connect timeout=15)')': /simple/ride/
       Retrying (Retry(total=3, connect=None, read=None, redirect=None)) after connec
    tion broken by 'ConnectTimeoutError(<pip._vendor.requests.packages.urllib3.conne
    ction.VerifiedHTTPSConnection object at 0x030C6B30>, 'Connection to pypi.python.
    org timed out. (connect timeout=15)')': /simple/ride/
       Retrying (Retry(total=2, connect=None, read=None, redirect=None)) after connec
    tion broken by 'ConnectTimeoutError(<pip._vendor.requests.packages.urllib3.conne
    ction.VerifiedHTTPSConnection object at 0x030C6BD0>, 'Connection to pypi.python.
    org timed out. (connect timeout=15)')': /simple/ride/
      Retrying (Retry(total=1, connect=None, read=None, redirect=None)) after connec
    tion broken by 'ConnectTimeoutError(<pip._vendor.requests.packages.urllib3.conne
    ction.VerifiedHTTPSConnection object at 0x030C6CB0>, 'Connection to pypi.python.
    org timed out. (connect timeout=15)')': /simple/ride/
      Retrying (Retry(total=0, connect=None, read=None, redirect=None)) after connec
    tion broken by 'ConnectTimeoutError(<pip._vendor.requests.packages.urllib3.conne
    ction.VerifiedHTTPSConnection object at 0x030C6D90>, 'Connection to pypi.python.
    org timed out. (connect timeout=15)')': /simple/ride/
      Retrying (Retry(total=4, connect=None, read=None, redirect=None)) after connec
    tion broken by 'ConnectTimeoutError(<pip._vendor.requests.packages.urllib3.conne
    ction.VerifiedHTTPSConnection object at 0x030C6B10>, 'Connection to pypi.python.
    org timed out. (connect timeout=15)')': /simple/ride/
      Retrying (Retry(total=3, connect=None, read=None, redirect=None)) after connec
    tion broken by 'ConnectTimeoutError(<pip._vendor.requests.packages.urllib3.conne
    ction.VerifiedHTTPSConnection object at 0x030C6D10>, 'Connection to pypi.python.
    org timed out. (connect timeout=15)')': /simple/ride/
      Retrying (Retry(total=2, connect=None, read=None, redirect=None)) after connec
    tion broken by 'ConnectTimeoutError(<pip._vendor.requests.packages.urllib3.conne
    ction.VerifiedHTTPSConnection object at 0x030C6E70>, 'Connection to pypi.python.
    org timed out. (connect timeout=15)')': /simple/ride/
      Retrying (Retry(total=1, connect=None, read=None, redirect=None)) after connec
    tion broken by 'ConnectTimeoutError(<pip._vendor.requests.packages.urllib3.conne
    ction.VerifiedHTTPSConnection object at 0x030C6AB0>, 'Connection to pypi.python.
    org timed out. (connect timeout=15)')': /simple/ride/
      Retrying (Retry(total=0, connect=None, read=None, redirect=None)) after connec
    tion broken by 'ConnectTimeoutError(<pip._vendor.requests.packages.urllib3.conne
    ction.VerifiedHTTPSConnection object at 0x03186030>, 'Connection to pypi.python.
    org timed out. (connect timeout=15)')': /simple/ride/
          Could not find a version that satisfies the requirement ride (from versions: )
    
        No matching distribution found for ride
    
    C:\Python27>
    
  6. P.S我确保在环境变量中正确添加了python的PATH。

7 个答案:

答案 0 :(得分:2)

您使用的是错误的包名称。机器人框架和骑行之间没有空间 - 这是一个连字符。

pip install robotframework-ride

但是,我不明白你为什么会收到超时错误。再试一次,看看。

答案 1 :(得分:1)

一旦您安装了python。 请检查与您使用的python版本兼容的wxPython版本。 我正在使用python 3.7。 以下是安装游乐设施所需的步骤:

  1. pip install -U wxPython

enter image description here

  1. 通过pip安装robotframework-ride

enter image description here

  1. 在命令提示符下,写 ride.py

答案 2 :(得分:0)

在Windows上,您应该在RIDE之前安装wxpython。

您可以从wxPython下载页面下载适当的安装程序。有关安装的详细信息,请参阅http://wxpython.org页面。

我的是wxpython-2.8。

答案 3 :(得分:0)

希望获得帮助:pip install robotframework-ride --trusted-host pypi.org

答案 4 :(得分:0)

我尝试使用最新版本的Python和wxPython,但它们无法安装。另外,在robotframework-ride git页面上,没有安装程序,尽管他们说有安装程序。

请确保对于Python 2.7安装了兼容的wxPython版本。在sourceforge网站上,找到以“ py27”结尾的安装程序。只有这样,您才能正确安装RIDE。

对我有用。

答案 5 :(得分:0)

第1步:预先检查 检查是否已经安装了python python --version pip --version 检查机器人框架是否已安装 机器人--version

第2步:安装Python 2.7.14(32位) 检查cmd:python --version pip --version

第3步:在环境变量中设置Python C:\ Python27; C:\ Python27 \ Scripts; 检查: python --version pip --version

第4步:安装机器人框架 pip安装robotframework 卸载:pip卸载robotframework

第5步:检查cmd: 机器人-版本 pybot --version

第6步:下载并安装wxPython(32位)
https://sourceforge.net/projects/wxpy..。 检查:点子冻结
wxpython应该可用

第7步:安装RIDE pip安装robotframework-ride https://github.com/robotframework/RID..

答案 6 :(得分:0)

如果您正在使用它,则可以通过禁用 Proxy server 或断开 VPN 来解决。

相关问题