【问题标题】:unable to install robotframework-ride无法安装robotframework-ride
【发布时间】:2021-07-02 19:59:32
【问题描述】:

我正在尝试安装 robotframework-ride,但安装失败。我尝试了所有可能的选项,但未能解决问题。Windows 和 ubuntu 18 和 20 中的问题相同

python3 -m pip install robotframework-ride

Error running configure
  ERROR: failed building wxWidgets
  Traceback (most recent call last):
    File "build.py", line 1510, in cmd_build_wx
      wxbuild.main(wxDir(), build_options)
    File "/tmp/pip-build-_os0c4ab/wxPython/buildtools/build_wxwidgets.py", line 373, in main
      "Error running configure")
    File "/tmp/pip-build-_os0c4ab/wxPython/buildtools/build_wxwidgets.py", line 85, in exitIfError
      raise builder.BuildError(msg)
  buildtools.builder.BuildError: Error running configure
  Finished command: build_wx (0m2.579s)
  Finished command: build (0m2.579s)
  Command '"/usr/bin/python3" -u build.py build' failed with exit code 1.
  
  ----------------------------------------
  Failed building wheel for wxPython

Command "/usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-_os0c4ab/wxPython/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-xws6qhs5-record/install-record.txt --single-version-externally-managed --compile --user --prefix=" failed with error code 1 in /tmp/pip-build-_os0c4ab/wxPython/

【问题讨论】:

    标签: robotframework robotframework-ide


    【解决方案1】:

    要在 Ubuntu 20.04 上安装 RIDE,请执行此操作

    sudo apt update
    sudo install python3-wxgtk4.0
    pip install robotframework-ride
    

    执行Ride run

    ride.py
    

    【讨论】:

      【解决方案2】:

      你应该咨询Release Notes of RIDE,了解对wxPython的依赖。

      在 Windows 和 Mac 上没有问题,但在 Linux 上,您应该先从正确的 .wheel 文件 (wxpython.org) 安装它。

      您尝试安装的版本是 1.7.4.2,它需要 wxPython 的 4.0.7.post2 版本。

      可能你需要安装wheel

      pip install wheel 
      

      【讨论】:

        猜你喜欢
        • 2020-04-13
        • 2016-07-15
        • 2020-01-03
        • 2019-07-04
        • 1970-01-01
        • 2020-01-21
        • 1970-01-01
        • 2020-08-10
        • 2021-03-23
        相关资源
        最近更新 更多