我正在尝试使用以下命令在新安装的Ubuntu18.04上安装wxPython
pip3 install wxPython构建失败,出现以下错误
error: [Errno 2] No such file or directory: 'build/lib.linux-x86_64-3.6/wx/libwx_baseu-3.0.so'
----------------------------------------
Command "/usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-30uqzd2e/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-hynl659w-record/install-record.txt --single-version-externally-managed --compile --user --prefix=" failed with error code 1 in /tmp/pip-build-30uqzd2e/wxPython/我不知道到哪里去寻找解决方案。有人能建议我从哪里开始吗?
编辑20200424 08:06
我看了看
/usr/lib/x86_64-linux-gnu/和
libwx_baseu-3.0.so.0都缺席了。我已经从this site安装了它
它现在已经存在,但安装失败,并显示相同的消息
发布于 2020-04-28 16:39:05
我已经设法安装了wxPython。
我重新安装了Ubuntu 18.04,并执行了以下操作:
sudo apt install make gcc libgtk-3-dev libwebkitgtk-dev libwebkitgtk-3.0-dev libgstreamer-gl1.0-0 freeglut3 freeglut3-dev python-gst-1.0 python3-gst-1.0 libglib2.0-dev ubuntu-restricted-extras libgstreamer-plugins-base1.0-dev
pip3 install wxpython我猜当它失败的时候,我已经尝试了很多修复,并且在这条线上的某个地方被损坏了,或者有一个不匹配的地方。
我的解决方案是基于this answer的
发布于 2020-04-26 23:54:49
我昨天用以下命令安装了wx.python 4.1.0:
URL=https://extras.wxpython.org/wxPython4/extras/linux/gtk2/ubuntu-18.04
pip install -U -f $URL wxPython有关详情,请参阅:https://extras.wxpython.org/wxPython4/extras/
对于gtk3,只需替换上面url中的gtk2即可。
https://stackoverflow.com/questions/61390486
复制相似问题