我正在尝试安装robotframework-ride,但安装失败。我尝试了所有可能的选项,但在windows和ubuntu18和20中都无法解决issue.same问题。
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/发布于 2021-04-08 01:02:27
要在Ubuntu 20.04上安装RIDE,请执行以下操作
sudo apt update
sudo install python3-wxgtk4.0
pip install robotframework-ride执行Ride run的步骤
ride.py发布于 2021-04-08 01:03:41
您应该参考Release Notes of RIDE,以了解对wxPython的依赖。
在Windows和Mac上没有问题,但是在Linux上你应该首先从正确的.wheel文件(wxpython.org)安装它。
您尝试安装的版本是1.7.4.2,它需要4.0.7.post2版的wxPython。
您可能需要安装wheel
pip install wheel https://stackoverflow.com/questions/66978738
复制相似问题