无法使用 pip3 在 python3.7 的 Ubuntu 上安装 wxPython
unable to install wxPython on Ubuntu with python3.7 using pip3
我必须安装 wxPython。
我有,
- Ubuntu 18.10
- python版本:Python3.7.3
- pip3 版本:pip 19.0.3
来自 /usr/local/lib/python3.7/site-packages/pip (python 3.7) 我 运行 命令,
pip3 install wxPython
它通过以下错误:
Checking for /tmp/pip-install-mjeu3aw7/wxpython/bin/waf-2.0.8...
"/usr/local/bin/python3.7" /tmp/pip-install-mjeu3aw7/wxpython/bin/waf-2.0.8
--wx_config=/tmp/pip-install-mjeu3aw7/wxpython/build/wxbld/gtk3/wx-config
--gtk3 --python="/usr/local/bin/python3.7" --out=build/waf/3.7/gtk3 configure build
Setting top to : /tmp/pip-install-mjeu3aw7/wxpython
Setting out to : /tmp/pip-install-mjeu3aw7/wxpython/build/waf/3.7/gtk3
Checking for 'gcc' (C compiler) : /usr/bin/gcc
Checking for 'g++' (C++ compiler) : /usr/bin/g++
Checking for program 'python' : /usr/local/bin/python3.7
Checking for python version >= 2.7.0 : 3.7.3
python-config : /usr/local/bin/python3.7-config
Asking python-config for pyembed '--cflags --libs --ldflags' flags : yes
Testing pyembed configuration : yes
Asking python-config for pyext '--cflags --libs --ldflags' flags : yes
Testing pyext configuration : Could not build python extensions
The configuration failed
(complete log in /tmp/pip-install-mjeu3aw7/wxpython/build/waf/3.7/gtk3/config.log)
Command '"/usr/local/bin/python3.7" /tmp/pip-install-mjeu3aw7/wxpython/bin/waf-2.0.8
--wx_config=/tmp/pip-install-mjeu3aw7/wxpython/build/wxbld/gtk3/wx-config
--gtk3 --python="/usr/local/bin/python3.7" --out=build/waf/3.7/gtk3 configure build ' failed with exit code 1.
Finished command: build_py (0.852s)
Finished command: build (2m51.322s)
Command '"/usr/local/bin/python3.7" -u build.py build' failed with exit code 1.
---------------------------------------- Command "/usr/local/bin/python3.7 -u -c "import setuptools,
tokenize;file='/tmp/pip-install-mjeu3aw7/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-record-o0jpf739/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-install-mjeu3aw7/wxpython/
任何人都可以给我确切的安装工作解决方案或如何进行吗?
提前致谢。
wxPython 本身不支持 Linux.
的轮子构建
如果您使用 Ubuntu,请尝试以下操作 according to their documentation:
pip install -U \
-f https://extras.wxpython.org/wxPython4/extras/linux/gtk3/ubuntu-18.04 \
wxPython
如果您不在 any of the supported extras 上或以上方法不起作用,您必须根据他们在下载页面上的说明自行构建。
我必须安装 wxPython。
我有,
- Ubuntu 18.10
- python版本:Python3.7.3
- pip3 版本:pip 19.0.3
来自 /usr/local/lib/python3.7/site-packages/pip (python 3.7) 我 运行 命令,
pip3 install wxPython
它通过以下错误:
Checking for /tmp/pip-install-mjeu3aw7/wxpython/bin/waf-2.0.8... "/usr/local/bin/python3.7" /tmp/pip-install-mjeu3aw7/wxpython/bin/waf-2.0.8 --wx_config=/tmp/pip-install-mjeu3aw7/wxpython/build/wxbld/gtk3/wx-config --gtk3 --python="/usr/local/bin/python3.7" --out=build/waf/3.7/gtk3 configure build Setting top to : /tmp/pip-install-mjeu3aw7/wxpython Setting out to : /tmp/pip-install-mjeu3aw7/wxpython/build/waf/3.7/gtk3 Checking for 'gcc' (C compiler) : /usr/bin/gcc Checking for 'g++' (C++ compiler) : /usr/bin/g++ Checking for program 'python' : /usr/local/bin/python3.7 Checking for python version >= 2.7.0 : 3.7.3 python-config : /usr/local/bin/python3.7-config Asking python-config for pyembed '--cflags --libs --ldflags' flags : yes Testing pyembed configuration : yes Asking python-config for pyext '--cflags --libs --ldflags' flags : yes Testing pyext configuration : Could not build python extensions The configuration failed (complete log in /tmp/pip-install-mjeu3aw7/wxpython/build/waf/3.7/gtk3/config.log) Command '"/usr/local/bin/python3.7" /tmp/pip-install-mjeu3aw7/wxpython/bin/waf-2.0.8 --wx_config=/tmp/pip-install-mjeu3aw7/wxpython/build/wxbld/gtk3/wx-config --gtk3 --python="/usr/local/bin/python3.7" --out=build/waf/3.7/gtk3 configure build ' failed with exit code 1. Finished command: build_py (0.852s) Finished command: build (2m51.322s) Command '"/usr/local/bin/python3.7" -u build.py build' failed with exit code 1.
---------------------------------------- Command "/usr/local/bin/python3.7 -u -c "import setuptools, tokenize;file='/tmp/pip-install-mjeu3aw7/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-record-o0jpf739/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-install-mjeu3aw7/wxpython/
任何人都可以给我确切的安装工作解决方案或如何进行吗?
提前致谢。
wxPython 本身不支持 Linux.
的轮子构建如果您使用 Ubuntu,请尝试以下操作 according to their documentation:
pip install -U \
-f https://extras.wxpython.org/wxPython4/extras/linux/gtk3/ubuntu-18.04 \
wxPython
如果您不在 any of the supported extras 上或以上方法不起作用,您必须根据他们在下载页面上的说明自行构建。