155******38
deepin
2018-07-03 17:25 这错误提示这么明显,楼主你没看到你环境缺失?No package 'gtk+-3.0' found
no
*** Could not run GTK+ test program, checking why...
*** The test program failed to compile or link. See the file config.log for the
*** exact error that occured. This usually means GTK+ is incorrectly installed.
configure: error:
The development files for GTK+ were not found. For GTK+ 2, please
ensure that pkg-config is in the path and that gtk+-2.0.pc is
installed. For GTK+ 1.2 please check that gtk-config is in the path,
and that the version is 1.2.3 or above. Also check that the
libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
--libs' are in the LD_LIBRARY_PATH or equivalent.
Error running configure
ERROR: failed building wxWidgets
Traceback (most recent call last):
File "build.py", line 1321, in cmd_build_wx
wxbuild.main(wxDir(), build_options)
File "/tmp/pip-build-da6b90v_/wxPython/buildtools/build_wxwidgets.py", line 375, in main
"Error running configure")
File "/tmp/pip-build-da6b90v_/wxPython/buildtools/build_wxwidgets.py", line 85, in exitIfError
raise builder.BuildError(msg)
buildtools.builder.BuildError: Error running configure
Finished command: build_wx (0m5.217s)
Finished command: build (0m5.217s)
Command '"/usr/bin/python3" -u build.py build' failed with exit code 1.
安装gtk+-3.0或者pkg-config is in the path and that gtk+-2.0.pc is
installed
no
*** Could not run GTK+ test program, checking why...
*** The test program failed to compile or link. See the file config.log for the
*** exact error that occured. This usually means GTK+ is incorrectly installed.
configure: error:
The development files for GTK+ were not found. For GTK+ 2, please
ensure that pkg-config is in the path and that gtk+-2.0.pc is
installed. For GTK+ 1.2 please check that gtk-config is in the path,
and that the version is 1.2.3 or above. Also check that the
libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
--libs' are in the LD_LIBRARY_PATH or equivalent.
Error running configure
ERROR: failed building wxWidgets
Traceback (most recent call last):
File "build.py", line 1321, in cmd_build_wx
wxbuild.main(wxDir(), build_options)
File "/tmp/pip-build-da6b90v_/wxPython/buildtools/build_wxwidgets.py", line 375, in main
"Error running configure")
File "/tmp/pip-build-da6b90v_/wxPython/buildtools/build_wxwidgets.py", line 85, in exitIfError
raise builder.BuildError(msg)
buildtools.builder.BuildError: Error running configure
Finished command: build_wx (0m5.217s)
Finished command: build (0m5.217s)
Command '"/usr/bin/python3" -u build.py build' failed with exit code 1.
安装gtk+-3.0或者pkg-config is in the path and that gtk+-2.0.pc is
installed
Reply Like 0 View the author


中文 

请问各位,我想在deepin15.6上安装python3用的wxpython 4.0.3,但使用如下命令安装,最后会报错。
命令:sudo pip3 install -U -f https://extras.wxpython.org/wxPy ... x/gtk3/ubuntu-18.04 wxPython
报错的提示太长,我复制到了文本文件中,各位能帮我看看,应该怎么安装吗?
补充一下吧,经过多次尝试,deepin15.6安装wxpython依旧失败。
但我想给各位希望使用python3,并安装wxpython4.0.3的某个人提供另外一个路径:
* 安装xubuntu 18.04 # 没办法,经过多次的轮回,才明白阿里的工程师说的没错,这个系统最适合学习和干活(当然日常使用也是很不错的选择)
* sudo apt install python3-pip
* sudo apt-get install libgtk-3-dev
* pip3 install -U -f https://extras.wxpython.org/wxPy ... x/gtk3/ubuntu-18.04 wxPython
这样就可以直接用python3调用wxpython模块来写图形化程序了;希望对各位有用吧!