我正在尝试使用命令在新安装的Ubuntu 18.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/
我不知道在哪里寻找解决方案。有人可以建议我从哪里开始
[EDIT 20200424 08:06]
我看过
/usr/lib/x86_64-linux-gnu/
和
libwx_baseu-3.0.so.0
不存在。我是从this site
安装的它现在存在,但是安装失败并显示相同的消息
答案 0 :(得分:0)
我昨天使用以下命令安装了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,只需在上面的网址中替换gtk2
。
答案 1 :(得分:0)
我已经成功安装了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