我正在尝试安装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/
答案 0 :(得分:0)
要在 Ubuntu 20.04 上安装 RIDE,请执行此操作
sudo apt update
sudo install python3-wxgtk4.0
pip install robotframework-ride
执行Ride run
ride.py
答案 1 :(得分:0)
您应该查阅 Release Notes of RIDE,了解对 wxPython 的依赖。
在 Windows 和 Mac 上没有问题,但在 Linux 上,您应该首先从正确的 .wheel 文件 (wxpython.org) 安装它。
您尝试安装的版本是 1.7.4.2,它需要 wxPython 的 4.0.7.post2 版本。
可能您需要安装wheel
:
pip install wheel