wxPython 安装失败
wxPython Installation failure
我正在尝试使用命令
在新安装的 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/
我不知道去哪里寻找解决方案。有人可以建议我从哪里开始吗
[编辑 20200424 08:06]
我看了
/usr/lib/x86_64-linux-gnu/
和
libwx_baseu-3.0.so.0
缺席。我是从 this site
安装的
它现在存在,但安装失败并显示相同的消息
我昨天安装了 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
。
我已经成功安装了 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
我正在尝试使用命令
在新安装的 Ubuntu 18.04 上安装 wxPythonpip3 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
安装的它现在存在,但安装失败并显示相同的消息
我昨天安装了 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
。
我已经成功安装了 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