我必须安装wxPython。
我有,
来自/usr/local/lib/python3.7/site-packages/pip(python 3.7)我运行命令,
pip3 install wxPython
它通过以下错误:
检查/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设置top to:/ tmp / pip-install-mjeu3aw7 / wxpython设置为:/tmp/pip-install-mjeu3aw7/wxpython/build/waf/3.7/gtk3检查'gcc' (C编译器):/ usr / bin / gcc检查'g ++'(C ++编译器):/ usr / bin / g ++检查程序'python':/ usr / local / bin / python3.7检查python版本> = 2.7.0:3.7.3 python-config:/usr/local/bin/python3.7-config请求python-config for pyembed'--cflags --libs --ldflags'标志:是测试pyembed配置:是要求python -config for pyext'--cflags --libs --ldflags'标志:是测试pyext配置:无法构建python扩展配置失败(完成登录/ tmp / pip-install-mjeu3aw7 / wxpython / build / waf / 3 .7 / gtk3 / config.log)命令'“/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'失败退出代码1.完成命令:build_py(0.852s)完成命令:build(2m51.322s)命令'“/usr/local/bin/python3.7”-u build.py build'失败,退出代码为1。
----------------------------------------命令“/ 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-external-managed --compile“在/ tmp / pip-install-mjeu3aw7 / wxpython /中出现错误,错误代码为1
任何人都可以给我确切的安装工作解决方案或如何进行?
提前致谢。
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或以上不起作用,您必须根据他们的下载页面上的说明自行构建。