[root@gm gtk+]# pip installwxpython
Collecting wxpython
Downloading http://mirrors.zte.com.cn/pypi/packages/17/74/7c3ced03c3c76b9f98e4a0edae1801755a7599ebf481c04d9f77dfff17e3/wxPython-4.0.4.tar.gz (68.8MB)
100% |████████████████████████████████| 68.8MB 4.7MB/s
Requirement already satisfied (use--upgrade to upgrade): six in /usr/lib/python2.7/site-packages (from wxpython)
Requirement already satisfied (use--upgrade to upgrade): Pillow in /usr/lib64/python2.7/site-packages (from wxpython)
Installing collected packages: wxpython
Running setup.pyinstall forwxpython ... error
Complete output from command/usr/bin/python2 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-t_6afe/wxpython/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-pnjkOu-record/install-record.txt --single-version-externally-managed --compile:
runninginstallrunning build
WARNING: Building this way assumes that all generated files have been
generated already. If that is not thecase thenuse build.py directly
to generate the source and perform the build stage. You can use--skip-build with the bdist_* or installcommands to avoid this
message and the wxWidgets and Phoenix build stepsinthe future."/usr/bin/python2" -u build.py build
Will build using:"/usr/bin/python2"
2.7.5 (default, Oct 30 2018, 23:45:53)
[GCC4.8.5 20150623 (Red Hat 4.8.5-36)]
Python's architecture is 64bit
cfg.VERSION: 4.0.4Running command: build
Running command: build_wx
wxWidgets build options: ['--wxpython', '--unicode', '--gtk3']
Configure options: ['--enable-unicode', '--with-gtk=3', '--with-opengl', '--enable-sound', '--enable-graphics_ctx', '--enable-mediactrl', '--enable-display', '--enable-geometry', '--enable-debug_flag', '--enable-optimise', '--disable-debugreport', '--enable-uiactionsim', '--enable-autoidman', '--with-sdl']/tmp/pip-build-t_6afe/wxpython/ext/wxWidgets/configure --enable-unicode --with-gtk=3 --with-opengl --enable-sound --enable-graphics_ctx --enable-mediactrl --enable-display --enable-geometry --enable-debug_flag --enable-optimise --disable-debugreport --enable-uiactionsim --enable-autoidman --with-sdl
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checkingfor --disable-gui... no
checkingfor --enable-monolithic... no
checkingfor --enable-plugins... no
checkingfor --without-subdirs... no
checkingfor --enable-official_build... no
checkingfor --disable-all-features... no
checkingfor --enable-universal... no
checkingfor --enable-nanox... no
checkingfor --enable-gpe... no
checkingfortoolkit... gtk
checkingfor --with-libpng... yes
checkingfor --with-libjpeg... yes
checkingfor --with-libtiff... yes
checkingfor --without-libjbig... no
checkingfor --without-liblzma... no
checkingfor --with-libxpm... yes
checkingfor --with-libiconv... yes
checkingfor --with-libmspack... no
checkingfor --without-gtkprint... no
checkingfor --with-gnomevfs... no
checkingfor --with-libnotify... yes
checkingfor --with-hildon... no
checkingfor --with-opengl... yes
checkingfor --with-dmalloc... no
checkingfor --with-sdl... yes
checkingfor --with-regex... yes
checkingfor --with-zlib... yes
checkingfor --with-expat... yes
checkingfor --with-macosx-sdk...
checkingfor --with-macosx-version-min...
checkingfor --enable-debug... default
checkingfor --disable-debug_flag... no
checkingfor --enable-debug_info... no
checkingfor --enable-debug_gdb... no
checkingfor --enable-debug_cntxt... no
checkingfor --enable-mem_tracing... no
checkingfor --disable-shared... no
checkingfor --enable-stl... no
checkingfor --enable-std_containers... no
checkingfor --enable-std_iostreams... yes
checkingfor --enable-std_string... yes
checkingfor --enable-std_string_conv_in_wxstring... no
checkingfor --disable-unicode... no
checkingfor --enable-mslu... no
checkingfor --enable-utf8... no
checkingfor --enable-utf8only... no
checkingfor --enable-extended_rtti... no
checkingfor --disable-optimise... no
checkingfor --enable-profile... no
checkingfor --enable-no_rtti... no
checkingfor --enable-no_exceptions... no
checkingfor --enable-permissive... no
checkingfor --enable-no_deps... no
checkingfor --disable-vararg_macros... no
checkingfor --enable-universal_binary... no
checkingfor --enable-macosx_arch... no
checkingfor --enable-compat26... no
checkingfor --disable-compat28... no
checkingfor --disable-rpath... no
checkingfor --enable-objc_uniquifying... no
checkingfor --disable-visibility... no
checkingfor --disable-tls... no
checkingfor --enable-intl... yes
checkingfor --enable-xlocale... yes
checkingfor --enable-config... yes
checkingfor --enable-protocols... yes
checkingfor --enable-ftp... yes
checkingfor --enable-http... yes
checkingfor --enable-fileproto... yes
checkingfor --enable-sockets... yes
checkingfor --enable-ipv6... no
checkingfor --enable-ole... yes
checkingfor --enable-dataobj... yes
checkingfor --enable-ipc... yes
checkingfor --enable-baseevtloop... yes
checkingfor --enable-epollloop... yes
checkingfor --enable-selectloop... yes
checkingfor --enable-any... yes
checkingfor --enable-apple_ieee... yes
checkingfor --enable-arcstream... yes
checkingfor --enable-base64... yes
checkingfor --enable-backtrace... yes
checkingfor --enable-catch_segvs... yes
checkingfor --enable-cmdline... yes
checkingfor --enable-datetime... yes
checkingfor --enable-debugreport... no
checkingfor --enable-dialupman... yes
checkingfor --enable-dynlib... yes
checkingfor --enable-dynamicloader... yes
checkingfor --enable-exceptions... yes
checkingfor --enable-ffile... yes
checkingfor --enable-file... yes
checkingfor --enable-filehistory... yes
checkingfor --enable-filesystem... yes
checkingfor --enable-fontenum... yes
checkingfor --enable-fontmap... yes
checkingfor --enable-fs_archive... yes
checkingfor --enable-fs_inet... yes
checkingfor --enable-fs_zip... yes
checkingfor --enable-fsvolume... yes
checkingfor --enable-fswatcher... yes
checkingfor --enable-geometry... yes
checkingfor --enable-log... yes
checkingfor --enable-longlong... yes
checkingfor --enable-mimetype... yes
checkingfor --enable-printfposparam... yes
checkingfor --enable-snglinst... yes
checkingfor --enable-sound... yes
checkingfor --enable-stdpaths... yes
checkingfor --enable-stopwatch... yes
checkingfor --enable-streams... yes
checkingfor --enable-sysoptions... yes
checkingfor --enable-tarstream... yes
checkingfor --enable-textbuf... yes
checkingfor --enable-textfile... yes
checkingfor --enable-timer... yes
checkingfor --enable-variant... yes
checkingfor --enable-zipstream... yes
checkingfor --enable-url... yes
checkingfor --enable-protocol... yes
checkingfor --enable-protocol_http... yes
checkingfor --enable-protocol_ftp... yes
checkingfor --enable-protocol_file... yes
checkingfor --enable-threads... yes
checkingfor --enable-iniconf... no
checkingfor --enable-regkey... yes
checkingfor --enable-docview... yes
checkingfor --enable-help... yes
checkingfor --enable-mshtmlhelp... yes
checkingfor --enable-html... yes
checkingfor --enable-htmlhelp... yes
checkingfor --enable-xrc... yes
checkingfor --enable-aui... yes
checkingfor --enable-propgrid... yes
checkingfor --enable-ribbon... yes
checkingfor --enable-stc... yes
checkingfor --enable-constraints... yes
checkingfor --enable-loggui... yes
checkingfor --enable-logwin... yes
checkingfor --enable-logdialog... yes
checkingfor --enable-mdi... yes
checkingfor --enable-mdidoc... yes
checkingfor --enable-mediactrl... yes
checkingfor --enable-gstreamer8... no
checkingfor --enable-richtext... yes
checkingfor --enable-postscript... yes
checkingfor --enable-printarch... yes
checkingfor --enable-svg... yes
checkingfor --enable-webkit... yes
checkingfor --enable-webview... yes
checkingfor --enable-graphics_ctx... yes
checkingfor --enable-clipboard... yes
checkingfor --enable-dnd... yes
checkingfor --disable-controls... no
checkingfor --enable-markup... yes
checkingfor --enable-accel... yes
checkingfor --enable-animatectrl... yes
checkingfor --enable-bannerwindow... yes
checkingfor --enable-artstd... yes
checkingfor --enable-arttango... auto
checkingfor --enable-bmpbutton... yes
checkingfor --enable-bmpcombobox... yes
checkingfor --enable-button... yes
checkingfor --enable-calendar... yes
checkingfor --enable-caret... yes
checkingfor --enable-checkbox... yes
checkingfor --enable-checklst... yes
checkingfor --enable-choice... yes
checkingfor --enable-choicebook... yes
checkingfor --enable-collpane... yes
checkingfor --enable-colourpicker... yes
checkingfor --enable-combobox... yes
checkingfor --enable-comboctrl... yes
checkingfor --enable-commandlinkbutton... yes
checkingfor --enable-dataviewctrl... yes
checkingfor --enable-datepick... yes
checkingfor --enable-detect_sm... yes
checkingfor --enable-dirpicker... yes
checkingfor --enable-display... yes
checkingfor --enable-editablebox... yes
checkingfor --enable-filectrl... yes
checkingfor --enable-filepicker... yes
checkingfor --enable-fontpicker... yes
checkingfor --enable-gauge... yes
checkingfor --enable-grid... yes
checkingfor --enable-headerctrl... yes
checkingfor --enable-hyperlink... yes
checkingfor --enable-imaglist... yes
checkingfor --enable-infobar... yes
checkingfor --enable-listbook... yes
checkingfor --enable-listbox... yes
checkingfor --enable-listctrl... yes
checkingfor --enable-notebook... yes
checkingfor --enable-notifmsg... yes
checkingfor --enable-odcombobox... yes
checkingfor --enable-popupwin... yes
checkingfor --enable-prefseditor... yes
checkingfor --enable-radiobox... yes
checkingfor --enable-radiobtn... yes
checkingfor --enable-richmsgdlg... yes
checkingfor --enable-richtooltip... yes
checkingfor --enable-rearrangectrl... yes
checkingfor --enable-sash... yes
checkingfor --enable-scrollbar... yes
checkingfor --enable-searchctrl... yes
checkingfor --enable-slider... yes
checkingfor --enable-spinbtn... yes
checkingfor --enable-spinctrl... yes
checkingfor --enable-splitter... yes
checkingfor --enable-statbmp... yes
checkingfor --enable-statbox... yes
checkingfor --enable-statline... yes
checkingfor --enable-stattext... yes
checkingfor --enable-statusbar... yes
checkingfor --enable-taskbaricon... yes
checkingfor --enable-tbarnative... yes
checkingfor --enable-textctrl... yes
checkingfor --enable-timepick... yes
checkingfor --enable-tipwindow... yes
checkingfor --enable-togglebtn... yes
checkingfor --enable-toolbar... yes
checkingfor --enable-toolbook... yes
checkingfor --enable-treebook... yes
checkingfor --enable-treectrl... yes
checkingfor --enable-treelist... yes
checkingfor --enable-commondlg... yes
checkingfor --enable-aboutdlg... yes
checkingfor --enable-choicedlg... yes
checkingfor --enable-coldlg... yes
checkingfor --enable-filedlg... yes
checkingfor --enable-finddlg... yes
checkingfor --enable-fontdlg... yes
checkingfor --enable-dirdlg... yes
checkingfor --enable-msgdlg... yes
checkingfor --enable-numberdlg... yes
checkingfor --enable-splash... yes
checkingfor --enable-textdlg... yes
checkingfor --enable-tipdlg... yes
checkingfor --enable-progressdlg... yes
checkingfor --enable-wizarddlg... yes
checkingfor --enable-menus... yes
checkingfor --enable-miniframe... yes
checkingfor --enable-tooltips... yes
checkingfor --enable-splines... yes
checkingfor --enable-mousewheel... yes
checkingfor --enable-validators... yes
checkingfor --enable-busyinfo... yes
checkingfor --enable-hotkey... auto
checkingfor --enable-joystick... yes
checkingfor --enable-metafile... auto
checkingfor --enable-dragimage... yes
checkingfor --enable-accessibility... no
checkingfor --enable-uiactionsim... yes
checkingfor --enable-dctransform... yes
checkingfor --enable-webviewwebkit... yes
checkingfor --enable-palette... yes
checkingfor --enable-image... yes
checkingfor --enable-gif... yes
checkingfor --enable-pcx... yes
checkingfor --enable-tga... yes
checkingfor --enable-iff... yes
checkingfor --enable-pnm... yes
checkingfor --enable-xpm... yes
checkingfor --enable-ico_cur... yes
checkingfor --enable-dccache... yes
checkingfor --enable-ps-in-msw... yes
checkingfor --enable-ownerdrawn... yes
checkingfor --enable-uxtheme... yes
checkingfor --enable-wxdib... yes
checkingfor --enable-webviewie... yes
checkingfor --enable-autoidman... yes
checkingfor gcc... gccchecking whether the C compiler works... yes
checkingfor C compiler default output filename... a.out
checkingforsuffix of executables...
checking whether we are cross compiling... no
checkingfor suffix of objectfiles... o
checking whether we are using the GNU C compiler... yes
checking whethergcc accepts -g... yes
checkingfor gccoption to accept ISO C89... none needed
checking whether we are using the Intel C compiler... no
checking how to run the C preprocessor...gcc -E
checkingfor grep that handles long lines and -e... /usr/bin/grepcheckingfor egrep... /usr/bin/grep -E
checking whethergcc needs -traditional... no
checkingfor g++... g++checking whether we are using the GNU C++compiler... yes
checking whether g++ accepts -g... yes
checking whether we are using the Intel C++compiler... no
checking whether we are using the Sun C++compiler... no
checkingfor ar... archeckingforANSI C header files... yes
checkingfor sys/types.h... yes
checkingfor sys/stat.h... yes
checkingforstdlib.h... yes
checkingfor string.h... yes
checkingformemory.h... yes
checkingforstrings.h... yes
checkingforinttypes.h... yes
checkingforstdint.h... yes
checkingforunistd.h... yes
checkingforlanginfo.h... yes
checkingforwchar.h... yes
checkingfor sys/select.h... yes
checkingforcxxabi.h... yes
checkingfor an ANSI C-conforming const... yes
checkingforinline... inline
checking size ofshort... 2checking size of void*... 8checking size ofint... 4checking size oflong... 8checking size of size_t...8checking size oflong long... 8checking size of wchar_t...4checkingforva_copy... yes
checking whether the compiler supports variadic macros... yes
checkingfor _FILE_OFFSET_BITS value needed for large files... 64checkingif large filesupport is available... yes
checkingfor _LARGEFILE_SOURCE value needed forlarge files... no
checking whetherbyteordering is bigendian... no
checkingforiostream... yes
checkingif C++compiler supports the explicit keyword... yes
checkingfor std::wstring in ... yes
checkingforstd::istream... yes
checkingforstd::ostream... yes
checking how to run the C++ preprocessor... g++ -E
checking type_traits usability... no
checking type_traits presence... no
checkingfortype_traits... no
checking tr1/type_traits usability... yes
checking tr1/type_traits presence... yes
checkingfor tr1/type_traits... yes
checkingfor__sync_fetch_and_add and __sync_sub_and_fetch builtins... yes
checkingfor libraries directories... /usr/lib64
checkingforcos... no
checkingforfloor... no
checkingif floating point functions link without -lm... no
checkingforsin... yes
checkingforceil... yes
checkingif floating point functions link with -lm... yes
checkingforstrtoull... yes
checkingfor pkg-config... /usr/bin/pkg-configcheckingpkg-config is at least version 0.9.0... yes
configure: WARNING: Defaulting to the builtin regex libraryforUnicode build.
checkingfor zlib.h >= 1.1.4... yes
checkingforzlib.h... (cached) yes
checkingfor deflate in -lz... yes
checkingfor png.h > 0.90... yes
checkingforpng.h... (cached) yes
checkingfor png_sig_cmp in -lpng... yes
checkingforjpeglib.h... yes
checkingfor jpeg_read_header in -ljpeg... yes
checkingfortiffio.h... no
configure: WARNING: system tiff library not found, will use built-ininstead
checkingfor lzma_code in -llzma... no
checkingfor jbg_dec_init in -ljbig... no
checkingforexpat.h... yes
checkingif expat.h is valid C++header... yes
checkingfor XML_ParserCreate in -lexpat... yes
checkingfor GTK+version...
checkingfor pkg-config... /usr/bin/pkg-configcheckingfor GTK+ - version >= 3.0.0... no*** Could not run GTK+test program, checking why...*** The test program failed to compile or link. See the file config.log forthe*** exact error that occured. This usually means GTK+is incorrectly installed.
configure: error:
The development filesfor GTK+ were not found. For GTK+ 2, please
ensure thatpkg-config is in the path and that gtk+-2.0.pc is
installed. For GTK+ 1.2 please check that gtk-config is inthe path,
and that the version is1.2.3or 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 calllast):
File"build.py", line 1321, incmd_build_wx
wxbuild.main(wxDir(), build_options)
File"/tmp/pip-build-t_6afe/wxpython/buildtools/build_wxwidgets.py", line 375, inmain"Error running configure")
File"/tmp/pip-build-t_6afe/wxpython/buildtools/build_wxwidgets.py", line 85, inexitIfError
raise builder.BuildError(msg)
BuildError
Finished command: build_wx (4.690s)
Finished command: build (4.690s)
Command'"/usr/bin/python2" -u build.py build' failed with exit code 1.----------------------------------------Command"/usr/bin/python2 -u -c"import setuptools, tokenize;__file__='/tmp/pip-build-t_6afe/wxpython/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))"install --record /tmp/pip-pnjkOu-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-t_6afe/wxpython/