Error failed building wheel for wxpython

I am using Virtual box with a Ubuntu OS. When I type 'python --version' I get: Python 2.7.15+. I run the command 'pip install -r pip_required_gds.txt' that references installs, one ...

I am using Virtual box with a Ubuntu OS.
When I type ‘python —version’ I get: Python 2.7.15+.

I run the command ‘pip install -r pip_required_gds.txt’ that references installs, one of them being wxpython. Everything else works correctly except wxpython. Below is what it runs:

Collecting wxPython (from -r pip_required_gds.txt (line 2))
Collecting pytz (from -r pip_required_gds.txt (line 1))
Using cached https://files.pythonhosted.org/packages/e7/f9/f0b53f88060247251bf481fa6ea62cd0d25bf1b11a87888e53ce5b7c8ad2/pytz-2019.3-py2.py3-none-any.whl
Collecting wxPython (from -r pip_required_gds.txt (line 2))
Using cached https://files.pythonhosted.org/packages/9a/a1/9c081e04798eb134b63def3db121a6e4436e1d84e76692503deef8e75423/wxPython-4.0.6.tar.gz
Collecting numpy (from wxPython->-r pip_required_gds.txt (line 2))
Using cached https://files.pythonhosted.org/packages/d7/b1/3367ea1f372957f97a6752ec725b87886e12af1415216feec9067e31df70/numpy-1.16.5-cp27-cp27mu-manylinux1_x86_64.whl
Collecting pillow (from wxPython->-r pip_required_gds.txt (line 2))
Using cached https://files.pythonhosted.org/packages/11/21/b8f96afde78ff1d36fc8f71b08fdf2763d407ee9bb3dd026a17023760ca7/Pillow-6.2.0-cp27-cp27mu-manylinux1_x86_64.whl
Collecting six (from wxPython->-r pip_required_gds.txt (line 2))
Using cached https://files.pythonhosted.org/packages/73/fb/00a976f728d0d1fecfe898238ce23f502a721c0ac0ecfedb80e0d88c64e9/six-1.12.0-py2.py3-none-any.whl
Building wheels for collected packages: wxPython
Running setup.py bdist_wheel for wxPython … error
Complete output from command /usr/bin/python -u -c «import setuptools, tokenize;file=’/tmp/pip-build-GzFPrP/wxPython/setup.py’;f=getattr(tokenize, ‘open’, open)(file);code=f.read().replace(‘rn’, ‘n’);f.close();exec(compile(code, file, ‘exec’))» bdist_wheel -d /tmp/tmpQ63d_2pip-wheel- —python-tag cp27:
running bdist_wheel
running build
WARNING: Building this way assumes that all generated files have been
generated already. If that is not the case then use build.py directly
to generate the source and perform the build stage. You can use
—skip-build with the bdist_* or install commands to avoid this
message and the wxWidgets and Phoenix build steps in the future.

«/usr/bin/python» -u build.py build
Traceback (most recent call last):
File «build.py», line 30, in
import pathlib2
ImportError: No module named pathlib2
Command ‘»/usr/bin/python» -u build.py build’ failed with exit code 1.


Failed building wheel for wxPython
Running setup.py clean for wxPython
Failed to build wxPython
Installing collected packages: pytz, numpy, pillow, six, wxPython
Running setup.py install for wxPython … error
Complete output from command /usr/bin/python -u -c «import setuptools, tokenize;file=’/tmp/pip-build-GzFPrP/wxPython/setup.py’;f=getattr(tokenize, ‘open’, open)(file);code=f.read().replace(‘rn’, ‘n’);f.close();exec(compile(code, file, ‘exec’))» install —record /tmp/pip-x0EMi7-record/install-record.txt —single-version-externally-managed —compile —user —prefix=:
running install
running build
WARNING: Building this way assumes that all generated files have been
generated already. If that is not the case then use build.py directly
to generate the source and perform the build stage. You can use
—skip-build with the bdist_* or install commands to avoid this
message and the wxWidgets and Phoenix build steps in the future.

"/usr/bin/python" -u build.py build
Traceback (most recent call last):
  File "build.py", line 30, in <module>
    import pathlib2
ImportError: No module named pathlib2
Command '"/usr/bin/python" -u build.py build' failed with exit code 1.

----------------------------------------

Command «/usr/bin/python -u -c «import setuptools, tokenize;file=’/tmp/pip-build-GzFPrP/wxPython/setup.py’;f=getattr(tokenize, ‘open’, open)(file);code=f.read().replace(‘rn’, ‘n’);f.close();exec(compile(code, file, ‘exec’))» install —record /tmp/pip-x0EMi7-record/install-record.txt —single-version-externally-managed —compile —user —prefix=» failed with error code 1 in /tmp/pip-build-GzFPrP/wxPython/

Operating system:
wxPython version & source:
Python version & source:

Description of the problem:

This post describes how to install wxPython on ubuntu system and helps with solved build errors while installation. This post assumes you have bare Ubuntu 18.04.3 LTS system and it is newly installed. wxPython is a opensource, cross platform, GUI toolkit for the Python programming.

This post describes in detail for how to install wxpython ubuntu 18.04 for python2 and python3. wxPython allows Python programmers to create programs highly functional graphical

user interface, simply and easily. Being cross platform with little changes it works on Microsoft windows and Linux systems. So if you have GUI application that requires to be executed on both windows and Linux wxPython is right choice for python programmers.

‘pip’ is required as a prior condition for installation of wxPython, install ‘pip’ by running following command

$ sudo apt install python-pip

As per How to install wxPython wiki guide, to install wxPython using ‘pip’ you will need to execute following command

$  pip install -U 
-f https://extras.wxpython.org/wxPython4/extras/linux/gtk3/ubuntu-18.04 
wxPython

This command after successful execution says –

Installing collected packages: six, numpy, pillow, wxPython
Successfully installed numpy-1.16.5 pillow-6.1.0 six-1.12.0 wxPython-4.0.6

Now to test the installation execute below commands

$python2
>>> import wx
>>> wx.VERSION_STRING
'4.0.1'

After executing ‘import wx’ it gives following error

Python 2.7.15+ (default, Nov 27 2018, 23:36:35) 
[GCC 7.3.0] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import wx
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/bhagwat/.local/lib/python2.7/site-packages/wx/__init__.py", line 17, in <module>
from wx.core import *
File "/home/bhagwat/.local/lib/python2.7/site-packages/wx/core.py", line 12, in <module>
from ._core import *
ImportError: libpng12.so.0: cannot open shared object file: No such file or directory

Problem is with above installation it is pointing to ‘ubuntu-16.04’ and we are using ‘ubuntu-18.04’, so to fix this issue just execute below command and it will install for ‘ubuntu-18.04’

$ pip install -U  -f https://extras.wxpython.org/wxPython4/extras/linux/gtk3/ubuntu-18.04/ wxPython

Verify installation

$ python
Python 2.7.15+ (default, Nov 27 2018, 23:36:35) 
[GCC 7.3.0] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import wx
>>> wx.VERSION_STRING
'4.0.6'
>>> 

Contents

    • 0.1 Install wxPython for python 3
  • 1 Share this:
  • 2 Like this:
  • 3 Related

Install wxPython for python 3

Above steps works for Python 2, but how to install wxPython on python 3 or higher version. so, It seems wxPython is not fully ported for python 3 and above. But, First you will need ‘pip3’ to install wxPython for python 3.

$ sudo apt install python3-pip

So, This will install python3.6-dev and python3-dev, and once ‘pip3’ is installed simply execute following command

$  pip3 install wxPython

This command is failing with following error

    File "build.py", line 30, in <module>
import pathlib2
ModuleNotFoundError: No module named 'pathlib2'
Command '"/usr/bin/python3" -u build.py build' failed with exit code 1.
----------------------------------------
Failed building wheel for wxPython
Running setup.py clean for wxPython
so install 'pathlib2' by running following command
$ pip3 install pathlib2
If above command fails use below command to upgrade 'wxPython' 
$ python3 -m pip install --upgrade --pre -f https://wxpython.org/Phoenix/snapshot-builds/ wxPython

Now if you got following errors:
python-config : not found
Checking for library python3.7m in LIBDIR : not found
Checking for library python3.7m in python_LIBPL : not found
Checking for library python3.7m in $prefix/libs : not found
Checking for library python3.7m in LIBDIR : not found
Checking for library python3.7m in python_LIBPL : not found
Checking for library python3.7m in $prefix/libs : not found
Checking for library python37 in LIBDIR : not found
Checking for library python37 in python_LIBPL : not found
Checking for library python37 in $prefix/libs : not found
Checking for header Python.h : Distutils not installed? Broken python installation? Get python-config now!
The configuration failed

Install new python3.7.4 if above error still there then uninstall wxpython.

$sudo apt-get install python-dev
$pip uninstall wxpython
$sudo apt install libgtk-3-dev

Still, If you are getting following error:
File “/home/.local/lib/python3.8/site-packages/wx/core.py”, line 12, in <module>
from ._core import *
ImportError: libSDL2-2.0.so.0: cannot open shared object file: No such file or directory
To solve:

$sudo apt-get install git curl libsdl2-mixer-2.0-0 libsdl2-image-2.0-0 libsdl2-2.0-0
$pip install -U -f https://extras.wxpython.org/wxPython4/extras/linux/gtk3/ubuntu-18.04 wxPython

Thats it happy to help you during install wxpython ubuntu 18.04 for python2 and python3. Keep reading and comment out your experiences.

I’m failing to install wxpython in a virtual environment PyCharm using pip through the virtual console. When I run ‘pip install wxpython‘, I get the following text:
***

Code: Select all

(venv) dan@dan-Precision-7530:~/Nextcloud/documents/python-prog/chardb-gui-wx$ pip install wxpython
Collecting wxpython
  Using cached wxPython-4.1.1.tar.gz (66.0 MB)
  Preparing metadata (setup.py) ... done
Collecting pillow
  Using cached Pillow-9.1.1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (3.1 MB)
Collecting six
  Using cached six-1.16.0-py2.py3-none-any.whl (11 kB)
Collecting numpy
  Using cached numpy-1.22.4-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (16.9 MB)
Building wheels for collected packages: wxpython
  Building wheel for wxpython (setup.py) ... error
  error: subprocess-exited-with-error
  
  × python setup.py bdist_wheel did not run successfully.
  │ exit code: 1
  ╰─> [148 lines of output]
      /home/dan/Nextcloud/documents/python-prog/chardb-gui-wx/venv/lib/python3.8/site-packages/setuptools/dist.py:723: UserWarning: Usage of dash-separated 'license-file' will not be supported in future versions. Please use the underscore name 'license_file' instead
        warnings.warn(
      /home/dan/Nextcloud/documents/python-prog/chardb-gui-wx/venv/lib/python3.8/site-packages/setuptools/dist.py:300: DistDeprecationWarning: use_2to3 is ignored.
        warnings.warn(f"{attr} is ignored.", DistDeprecationWarning)
      running bdist_wheel
      running build
      WARNING: Building this way assumes that all generated files have been
      generated already.  If that is not the case then use build.py directly
      to generate the source and perform the build stage.  You can use
      --skip-build with the bdist_* or install commands to avoid this
      message and the wxWidgets and Phoenix build steps in the future.
      
      "/home/dan/Nextcloud/documents/python-prog/chardb-gui-wx/venv/bin/python" -u build.py build
      Will build using: "/home/dan/Nextcloud/documents/python-prog/chardb-gui-wx/venv/bin/python"
      3.8.10 (default, Mar 15 2022, 12:22:08)
      [GCC 9.4.0]
      Python's architecture is 64bit
      cfg.VERSION: 4.1.1
      
      Running command: build
      Running command: build_wx
      wxWidgets build options: ['--wxpython', '--unicode', '--gtk3']
      Configure options: ['--enable-unicode', '--with-gtk=3', '--enable-sound', '--enable-graphics_ctx', '--enable-display', '--enable-geometry', '--enable-debug_flag', '--enable-optimise', '--disable-debugreport', '--enable-uiactionsim', '--enable-autoidman', '--with-sdl']
      /tmp/pip-install-y7ht_7ky/wxpython_620a35ea8f354e208ec6ecb4da7c1ced/ext/wxWidgets/configure --enable-unicode --with-gtk=3 --enable-sound --enable-graphics_ctx --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
      checking for toolkit... gtk
      checking for gcc... gcc
      checking whether the C compiler works... yes
      checking for C compiler default output file name... a.out
      checking for suffix of executables...
      checking whether we are cross compiling... no
      checking for suffix of object files... o
      checking whether we are using the GNU C compiler... yes
      checking whether gcc accepts -g... yes
      checking for gcc option 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
      checking for grep that handles long lines and -e... /usr/bin/grep
      checking for egrep... /usr/bin/grep -E
      checking whether gcc needs -traditional... no
      checking for 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
      checking for ar... ar
      checking for ANSI C header files... yes
      checking for sys/types.h... yes
      checking for sys/stat.h... yes
      checking for stdlib.h... yes
      checking for string.h... yes
      checking for memory.h... yes
      checking for strings.h... yes
      checking for inttypes.h... yes
      checking for stdint.h... yes
      checking for unistd.h... yes
      checking for langinfo.h... yes
      checking for wchar.h... yes
      checking for sys/select.h... yes
      checking for cxxabi.h... yes
      checking for an ANSI C-conforming const... yes
      checking for inline... inline
      checking size of short... 2
      checking size of void *... 8
      checking size of int... 4
      checking size of long... 8
      checking size of size_t... 8
      checking size of long long... 8
      checking size of wchar_t... 4
      checking for va_copy... yes
      checking for _FILE_OFFSET_BITS value needed for large files... 64
      checking if large file support is available... yes
      checking for _LARGEFILE_SOURCE value needed for large files... no
      checking whether byte ordering is bigendian... no
      checking for std::wstring in <string>... yes
      checking for std::istream... yes
      checking for std::ostream... yes
      checking for type_traits... yes
      checking for __sync_fetch_and_add and __sync_sub_and_fetch builtins... yes
      checking for libraries directories... /usr/lib/x86_64-linux-gnu /usr/lib
      checking for cos... no
      checking for floor... no
      checking if floating point functions link without -lm... no
      checking for sin... yes
      checking for ceil... yes
      checking if floating point functions link with -lm... yes
      checking for strtoull... yes
      checking for pkg-config... /usr/bin/pkg-config
      checking pkg-config is at least version 0.9.0... yes
      configure: WARNING: Defaulting to the builtin regex library for Unicode build.
      checking for zlib.h >= 1.1.4... yes
      checking for zlib.h... (cached) yes
      checking for deflate in -lz... yes
      checking for png.h > 0.90... no
      checking for png.h... (cached) no
      configure: WARNING: system png library not found or too old, will use built-in instead
      checking whether png.c file exists... yes
      checking for jpeglib.h... no
      configure: WARNING: system jpeg library not found, will use built-in instead
      checking whether jpeglib.h file exists... yes
      checking lzma.h usability... no
      checking lzma.h presence... no
      checking for lzma.h... no
      checking for jbg_dec_init in -ljbig... no
      checking for LIBTIFF... not found via pkg-config
      checking for tiffio.h... no
      configure: WARNING: system tiff library not found, will use built-in instead
      checking whether tiff.h file exists... yes
      checking for expat.h... yes
      checking if expat.h is valid C++ header... yes
      checking for XML_ParserCreate in -lexpat... yes
      checking for GTK+ version...
      checking for pkg-config... (cached) /usr/bin/pkg-config
      checking pkg-config is at least version 0.16... yes
      checking for GTK+ - version >= 3.0.0... Package gtk+-3.0 was not found in the pkg-config search path.
      Perhaps you should add the directory containing `gtk+-3.0.pc'
      to the PKG_CONFIG_PATH environment variable
      No package 'gtk+-3.0' found
      Package gthread-2.0 was not found in the pkg-config search path.
      Perhaps you should add the directory containing `gthread-2.0.pc'
      to the PKG_CONFIG_PATH environment variable
      No package 'gthread-2.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 occurred. 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 1510, in cmd_build_wx
          wxbuild.main(wxDir(), build_options)
        File "/tmp/pip-install-y7ht_7ky/wxpython_620a35ea8f354e208ec6ecb4da7c1ced/buildtools/build_wxwidgets.py", line 372, in main
          exitIfError(wxBuilder.configure(dir=wxRootDir, options=configure_opts),
        File "/tmp/pip-install-y7ht_7ky/wxpython_620a35ea8f354e208ec6ecb4da7c1ced/buildtools/build_wxwidgets.py", line 85, in exitIfError
          raise builder.BuildError(msg)
      buildtools.builder.BuildError: Error running configure
      Finished command: build_wx (0m3.162s)
      Finished command: build (0m3.162s)
      Command '"/home/dan/Nextcloud/documents/python-prog/chardb-gui-wx/venv/bin/python" -u build.py build' failed with exit code 1.
      [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for wxpython
  Running setup.py clean for wxpython
Failed to build wxpython
Installing collected packages: six, pillow, numpy, wxpython
  Running setup.py install for wxpython ... error
  error: subprocess-exited-with-error
  
  × Running setup.py install for wxpython did not run successfully.
  │ exit code: 1
  ╰─> [150 lines of output]
      /home/dan/Nextcloud/documents/python-prog/chardb-gui-wx/venv/lib/python3.8/site-packages/setuptools/dist.py:723: UserWarning: Usage of dash-separated 'license-file' will not be supported in future versions. Please use the underscore name 'license_file' instead
        warnings.warn(
      /home/dan/Nextcloud/documents/python-prog/chardb-gui-wx/venv/lib/python3.8/site-packages/setuptools/dist.py:300: DistDeprecationWarning: use_2to3 is ignored.
        warnings.warn(f"{attr} is ignored.", DistDeprecationWarning)
      running install
      /home/dan/Nextcloud/documents/python-prog/chardb-gui-wx/venv/lib/python3.8/site-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
        warnings.warn(
      running build
      WARNING: Building this way assumes that all generated files have been
      generated already.  If that is not the case then use build.py directly
      to generate the source and perform the build stage.  You can use
      --skip-build with the bdist_* or install commands to avoid this
      message and the wxWidgets and Phoenix build steps in the future.
      
      "/home/dan/Nextcloud/documents/python-prog/chardb-gui-wx/venv/bin/python" -u build.py build
      Will build using: "/home/dan/Nextcloud/documents/python-prog/chardb-gui-wx/venv/bin/python"
      3.8.10 (default, Mar 15 2022, 12:22:08)
      [GCC 9.4.0]
      Python's architecture is 64bit
      cfg.VERSION: 4.1.1
      
      Running command: build
      Running command: build_wx
      wxWidgets build options: ['--wxpython', '--unicode', '--gtk3']
      Configure options: ['--enable-unicode', '--with-gtk=3', '--enable-sound', '--enable-graphics_ctx', '--enable-display', '--enable-geometry', '--enable-debug_flag', '--enable-optimise', '--disable-debugreport', '--enable-uiactionsim', '--enable-autoidman', '--with-sdl']
      /tmp/pip-install-y7ht_7ky/wxpython_620a35ea8f354e208ec6ecb4da7c1ced/ext/wxWidgets/configure --enable-unicode --with-gtk=3 --enable-sound --enable-graphics_ctx --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
      checking for toolkit... gtk
      checking for gcc... gcc
      checking whether the C compiler works... yes
      checking for C compiler default output file name... a.out
      checking for suffix of executables...
      checking whether we are cross compiling... no
      checking for suffix of object files... o
      checking whether we are using the GNU C compiler... yes
      checking whether gcc accepts -g... yes
      checking for gcc option 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
      checking for grep that handles long lines and -e... /usr/bin/grep
      checking for egrep... /usr/bin/grep -E
      checking whether gcc needs -traditional... no
      checking for 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
      checking for ar... ar
      checking for ANSI C header files... yes
      checking for sys/types.h... yes
      checking for sys/stat.h... yes
      checking for stdlib.h... yes
      checking for string.h... yes
      checking for memory.h... yes
      checking for strings.h... yes
      checking for inttypes.h... yes
      checking for stdint.h... yes
      checking for unistd.h... yes
      checking for langinfo.h... yes
      checking for wchar.h... yes
      checking for sys/select.h... yes
      checking for cxxabi.h... yes
      checking for an ANSI C-conforming const... yes
      checking for inline... inline
      checking size of short... 2
      checking size of void *... 8
      checking size of int... 4
      checking size of long... 8
      checking size of size_t... 8
      checking size of long long... 8
      checking size of wchar_t... 4
      checking for va_copy... yes
      checking for _FILE_OFFSET_BITS value needed for large files... 64
      checking if large file support is available... yes
      checking for _LARGEFILE_SOURCE value needed for large files... no
      checking whether byte ordering is bigendian... no
      checking for std::wstring in <string>... yes
      checking for std::istream... yes
      checking for std::ostream... yes
      checking for type_traits... yes
      checking for __sync_fetch_and_add and __sync_sub_and_fetch builtins... yes
      checking for libraries directories... /usr/lib/x86_64-linux-gnu /usr/lib
      checking for cos... no
      checking for floor... no
      checking if floating point functions link without -lm... no
      checking for sin... yes
      checking for ceil... yes
      checking if floating point functions link with -lm... yes
      checking for strtoull... yes
      checking for pkg-config... /usr/bin/pkg-config
      checking pkg-config is at least version 0.9.0... yes
      configure: WARNING: Defaulting to the builtin regex library for Unicode build.
      checking for zlib.h >= 1.1.4... yes
      checking for zlib.h... (cached) yes
      checking for deflate in -lz... yes
      checking for png.h > 0.90... no
      checking for png.h... (cached) no
      configure: WARNING: system png library not found or too old, will use built-in instead
      checking whether png.c file exists... yes
      checking for jpeglib.h... no
      configure: WARNING: system jpeg library not found, will use built-in instead
      checking whether jpeglib.h file exists... yes
      checking lzma.h usability... no
      checking lzma.h presence... no
      checking for lzma.h... no
      checking for jbg_dec_init in -ljbig... no
      checking for LIBTIFF... not found via pkg-config
      checking for tiffio.h... no
      configure: WARNING: system tiff library not found, will use built-in instead
      checking whether tiff.h file exists... yes
      checking for expat.h... yes
      checking if expat.h is valid C++ header... yes
      checking for XML_ParserCreate in -lexpat... yes
      checking for GTK+ version...
      checking for pkg-config... (cached) /usr/bin/pkg-config
      checking pkg-config is at least version 0.16... yes
      checking for GTK+ - version >= 3.0.0... Package gtk+-3.0 was not found in the pkg-config search path.
      Perhaps you should add the directory containing `gtk+-3.0.pc'
      to the PKG_CONFIG_PATH environment variable
      No package 'gtk+-3.0' found
      Package gthread-2.0 was not found in the pkg-config search path.
      Perhaps you should add the directory containing `gthread-2.0.pc'
      to the PKG_CONFIG_PATH environment variable
      No package 'gthread-2.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 occurred. 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 1510, in cmd_build_wx
          wxbuild.main(wxDir(), build_options)
        File "/tmp/pip-install-y7ht_7ky/wxpython_620a35ea8f354e208ec6ecb4da7c1ced/buildtools/build_wxwidgets.py", line 372, in main
          exitIfError(wxBuilder.configure(dir=wxRootDir, options=configure_opts),
        File "/tmp/pip-install-y7ht_7ky/wxpython_620a35ea8f354e208ec6ecb4da7c1ced/buildtools/build_wxwidgets.py", line 85, in exitIfError
          raise builder.BuildError(msg)
      buildtools.builder.BuildError: Error running configure
      Finished command: build_wx (0m3.548s)
      Finished command: build (0m3.548s)
      Command '"/home/dan/Nextcloud/documents/python-prog/chardb-gui-wx/venv/bin/python" -u build.py build' failed with exit code 1.
      [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
error: legacy-install-failure

× Encountered error while trying to install package.
╰─> wxpython

note: This is an issue with the package mentioned above, not pip.
hint: See above for output from the failure.

Apparently pip cannot find any of the GTK+ libraries from my reading. Anyway to correct this?

это инструкция для версии питона 2.7 надо для 3.5.2
соотвественно если кто-нить знает подскажите я хоть в нужном направлении копаю?

valerius@undead711:~/Downloads$ pip3 install wxPython_Phoenix-3.0.3.dev2648+23be602.tar.gz
Processing ./wxPython_Phoenix-3.0.3.dev2648+23be602.tar.gz
Requirement already satisfied (use --upgrade to upgrade): six in /usr/lib/python3/dist-packages (from wxPython-Phoenix==3.0.3.dev2648+23be602)
Building wheels for collected packages: wxPython-Phoenix
  Running setup.py bdist_wheel for wxPython-Phoenix ... error
  Complete output from command /usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-f7j6kdb0-build/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('rn', 'n'), __file__, 'exec'))" bdist_wheel -d /tmp/tmpvd9dp1e9pip-wheel- --python-tag cp35:
  running bdist_wheel
  running build
  WARNING: Building this way assumes that all generated files have been
  generated already.  If that is not the case then use build.py directly
  to generate the source and perform the build stage.  You can use
  --skip-build with the bdist_* or install commands to avoid this
  message and the wxWidgets and Phoenix build steps in the future.

    "/usr/bin/python3" -u build.py build
  Will build using: "/usr/bin/python3"
  3.5.2 (default, Sep 10 2016, 08:21:44)
  [GCC 5.4.0 20160609]
  Python's architecture is 64bit
  cfg.VERSION: 3.0.3.dev2648+23be602

    Running command: build
  Running command: build_wx
  wxWidgets build options: ['--wxpython', '--unicode']
  Configure options: ['--enable-unicode', '--with-opengl', '--enable-sound', '--enable-graphics_ctx', '--enable-mediactrl', '--enable-display', '--enable-geometry', '--enable-debug_flag', '--enable-optimise', '--disable-debugreport', '--enable-uiactionsim', '--with-sdl']
  /tmp/pip-f7j6kdb0-build/ext/wxWidgets/configure --enable-unicode --with-opengl --enable-sound --enable-graphics_ctx --enable-mediactrl --enable-display --enable-geometry --enable-debug_flag --enable-optimise --disable-debugreport --enable-uiactionsim --with-sdl
  checking build system type... x86_64-unknown-linux-gnu
  checking host system type... x86_64-unknown-linux-gnu
  checking for --disable-gui... no
  *
  *
  *

    checking for pkg-config... /usr/bin/pkg-config
  checking for GTK+ - version >= 2.6.0... Package gtk+-2.0 was not found in the pkg-config search path.
  Perhaps you should add the directory containing `gtk+-2.0.pc'
  to the PKG_CONFIG_PATH environment variable
  No package 'gtk+-2.0' found
  Package gthread-2.0 was not found in the pkg-config search path.
  Perhaps you should add the directory containing `gthread-2.0.pc'
  to the PKG_CONFIG_PATH environment variable
  No package 'gthread-2.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 occurred. This usually means GTK+ is incorrectly installed.
  checking for pkg-config... (cached) /usr/bin/pkg-config
  checking for GTK+ - version >= 3.0.0... Package gtk+-3.0 was not found in the pkg-config search path.
  Perhaps you should add the directory containing `gtk+-3.0.pc'
  to the PKG_CONFIG_PATH environment variable
  No package 'gtk+-3.0' found
  Package gthread-2.0 was not found in the pkg-config search path.
  Perhaps you should add the directory containing `gthread-2.0.pc'
  to the PKG_CONFIG_PATH environment variable
  No package 'gthread-2.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.
  checking for gtk-config... no
  checking for GTK - version >= 1.2.7... no
  *** The gtk-config script installed by GTK could not be found
  *** If GTK was installed in PREFIX, make sure PREFIX/bin is in
  *** your path, or set the GTK_CONFIG environment variable to the
  *** full path to gtk-config.
  checking for gtk-config... (cached) no
  checking for GTK - version >= 1.2.3... no
  *** The gtk-config script installed by GTK could not be found
  *** If GTK was installed in PREFIX, make sure PREFIX/bin is in
  *** your path, or set the GTK_CONFIG environment variable to the
  *** full path to gtk-config.
  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 1188, in cmd_build_wx
      wxbuild.main(wxDir(), build_options)
    File "/tmp/pip-f7j6kdb0-build/buildtools/build_wxwidgets.py", line 368, in main
      "Error running configure")
    File "/tmp/pip-f7j6kdb0-build/buildtools/build_wxwidgets.py", line 85, in exitIfError
      raise builder.BuildError(msg)
  buildtools.builder.BuildError: Error running configure
  Finished command: build_wx (0m5.680s)
  Finished command: build (0m5.680s)
  Command '"/usr/bin/python3" -u build.py build' failed with exit code 1.

    ----------------------------------------
  Failed building wheel for wxPython-Phoenix
  Running setup.py clean for wxPython-Phoenix
Failed to build wxPython-Phoenix
Installing collected packages: wxPython-Phoenix
  Running setup.py install for wxPython-Phoenix ... error
    Complete output from command /usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-f7j6kdb0-build/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('rn', 'n'), __file__, 'exec'))" install --record /tmp/pip-n5fq0woe-record/install-record.txt --single-version-externally-managed --compile:
    running install
    running build
    WARNING: Building this way assumes that all generated files have been
    generated already.  If that is not the case then use build.py directly
    to generate the source and perform the build stage.  You can use
    --skip-build with the bdist_* or install commands to avoid this
    message and the wxWidgets and Phoenix build steps in the future.

        "/usr/bin/python3" -u build.py build
    Will build using: "/usr/bin/python3"
    3.5.2 (default, Sep 10 2016, 08:21:44)
    [GCC 5.4.0 20160609]
    Python's architecture is 64bit
    cfg.VERSION: 3.0.3.dev2648+23be602

        Running command: build
    Running command: build_wx
    wxWidgets build options: ['--wxpython', '--unicode']
    Configure options: ['--enable-unicode', '--with-opengl', '--enable-sound', '--enable-graphics_ctx', '--enable-mediactrl', '--enable-display', '--enable-geometry', '--enable-debug_flag', '--enable-optimise', '--disable-debugreport', '--enable-uiactionsim', '--with-sdl']
    /tmp/pip-f7j6kdb0-build/ext/wxWidgets/configure --enable-unicode --with-opengl --enable-sound --enable-graphics_ctx --enable-mediactrl --enable-display --enable-geometry --enable-debug_flag --enable-optimise --disable-debugreport --enable-uiactionsim --with-sdl
    checking build system type... x86_64-unknown-linux-gnu
    checking host system type... x86_64-unknown-linux-gnu
    checking for --disable-gui... no
    checking for --enable-monolithic... no
    checking for --enable-plugins... no
    checking for --without-subdirs... no
    checking for --enable-official_build... no
    checking for --disable-all-features... no
    checking for --enable-universal... no
    checking for --enable-nanox... no
    checking for --enable-gpe... no
    checking for toolkit... gtk
    checking for --with-libpng... yes
    checking for --with-libjpeg... yes
    checking for --with-libtiff... yes
    checking for --without-libjbig... no
    checking for --without-liblzma... no
    checking for --with-libxpm... yes
    checking for --with-libiconv... yes
    checking for --with-libmspack... no
    checking for --without-gtkprint... no
    checking for --with-gnomevfs... no
    checking for --with-libnotify... yes
    checking for --with-hildon... no
    checking for --with-opengl... yes
    checking for --with-dmalloc... no
    checking for --with-sdl... yes
    checking for --with-regex... yes
    checking for --with-zlib... yes
    checking for --with-expat... yes
    checking for --with-macosx-sdk...
    checking for --with-macosx-version-min...
    checking for --enable-debug... default
    checking for --disable-debug_flag... no
    checking for --enable-debug_info... no
    checking for --enable-debug_gdb... no
    checking for --enable-debug_cntxt... no
    checking for --enable-mem_tracing... no
    checking for --disable-shared... no
    checking for --enable-stl... no
    checking for --enable-std_containers... no
    checking for --enable-std_iostreams... yes
    checking for --enable-std_string... yes
    checking for --enable-std_string_conv_in_wxstring... no
    checking for --disable-unicode... no
    checking for --enable-mslu... no
    checking for --enable-utf8... no
    checking for --enable-utf8only... no
    checking for --enable-extended_rtti... no
    checking for --disable-optimise... no
    checking for --enable-profile... no
    checking for --enable-no_rtti... no
    checking for --enable-no_exceptions... no
    checking for --enable-permissive... no
    checking for --enable-no_deps... no
    checking for --disable-vararg_macros... no
    checking for --enable-universal_binary... no
    checking for --enable-macosx_arch... no
    checking for --enable-compat26... no
    checking for --disable-compat28... no
    checking for --disable-rpath... no
    checking for --enable-objc_uniquifying... no
    checking for --disable-visibility... no
    checking for --disable-tls... no
    checking for --enable-intl... yes
    checking for --enable-xlocale... yes
    checking for --enable-config... yes
    checking for --enable-protocols... yes
    checking for --enable-ftp... yes
    checking for --enable-http... yes
    checking for --enable-fileproto... yes
    checking for --enable-sockets... yes
    checking for --enable-ipv6... no
    checking for --enable-ole... yes
    checking for --enable-dataobj... yes
    checking for --enable-ipc... yes
    checking for --enable-baseevtloop... yes
    checking for --enable-epollloop... yes
    checking for --enable-selectloop... yes
    checking for --enable-any... yes
    checking for --enable-apple_ieee... yes
    checking for --enable-arcstream... yes
    checking for --enable-base64... yes
    checking for --enable-backtrace... yes
    checking for --enable-catch_segvs... yes
    checking for --enable-cmdline... yes
    checking for --enable-datetime... yes
    checking for --enable-debugreport... no
    checking for --enable-dialupman... yes
    checking for --enable-dynlib... yes
    checking for --enable-dynamicloader... yes
    checking for --enable-exceptions... yes
    checking for --enable-ffile... yes
    checking for --enable-file... yes
    checking for --enable-filehistory... yes
    checking for --enable-filesystem... yes
    checking for --enable-fontenum... yes
    checking for --enable-fontmap... yes
    checking for --enable-fs_archive... yes
    checking for --enable-fs_inet... yes
    checking for --enable-fs_zip... yes
    checking for --enable-fsvolume... yes
    checking for --enable-fswatcher... yes
    checking for --enable-geometry... yes
    checking for --enable-log... yes
    checking for --enable-longlong... yes
    checking for --enable-mimetype... yes
    checking for --enable-printfposparam... yes
    checking for --enable-snglinst... yes
    checking for --enable-sound... yes
    checking for --enable-stdpaths... yes
    checking for --enable-stopwatch... yes
    checking for --enable-streams... yes
    checking for --enable-sysoptions... yes
    checking for --enable-tarstream... yes
    checking for --enable-textbuf... yes
    checking for --enable-textfile... yes
    checking for --enable-timer... yes
    checking for --enable-variant... yes
    checking for --enable-zipstream... yes
    checking for --enable-url... yes
    checking for --enable-protocol... yes
    checking for --enable-protocol_http... yes
    checking for --enable-protocol_ftp... yes
    checking for --enable-protocol_file... yes
    checking for --enable-threads... yes
    checking for --enable-iniconf... no
    checking for --enable-regkey... yes
    checking for --enable-docview... yes
    checking for --enable-help... yes
    checking for --enable-mshtmlhelp... yes
    checking for --enable-html... yes
    checking for --enable-htmlhelp... yes
    checking for --enable-xrc... yes
    checking for --enable-aui... yes
    checking for --enable-propgrid... yes
    checking for --enable-ribbon... yes
    checking for --enable-stc... yes
    checking for --enable-constraints... yes
    checking for --enable-loggui... yes
    checking for --enable-logwin... yes
    checking for --enable-logdialog... yes
    checking for --enable-mdi... yes
    checking for --enable-mdidoc... yes
    checking for --enable-mediactrl... yes
    checking for --enable-gstreamer8... no
    checking for --enable-richtext... yes
    checking for --enable-postscript... yes
    checking for --enable-printarch... yes
    checking for --enable-svg... yes
    checking for --enable-webkit... yes
    checking for --enable-webview... yes
    checking for --enable-graphics_ctx... yes
    checking for --enable-clipboard... yes
    checking for --enable-dnd... yes
    checking for --disable-controls... no
    checking for --enable-markup... yes
    checking for --enable-accel... yes
    checking for --enable-animatectrl... yes
    checking for --enable-bannerwindow... yes
    checking for --enable-artstd... yes
    checking for --enable-arttango... auto
    checking for --enable-bmpbutton... yes
    checking for --enable-bmpcombobox... yes
    checking for --enable-button... yes
    checking for --enable-calendar... yes
    checking for --enable-caret... yes
    checking for --enable-checkbox... yes
    checking for --enable-checklst... yes
    checking for --enable-choice... yes
    checking for --enable-choicebook... yes
    checking for --enable-collpane... yes
    checking for --enable-colourpicker... yes
    checking for --enable-combobox... yes
    checking for --enable-comboctrl... yes
    checking for --enable-commandlinkbutton... yes
    checking for --enable-dataviewctrl... yes
    checking for --enable-datepick... yes
    checking for --enable-detect_sm... yes
    checking for --enable-dirpicker... yes
    checking for --enable-display... yes
    checking for --enable-editablebox... yes
    checking for --enable-filectrl... yes
    checking for --enable-filepicker... yes
    checking for --enable-fontpicker... yes
    checking for --enable-gauge... yes
    checking for --enable-grid... yes
    checking for --enable-headerctrl... yes
    checking for --enable-hyperlink... yes
    checking for --enable-imaglist... yes
    checking for --enable-infobar... yes
    checking for --enable-listbook... yes
    checking for --enable-listbox... yes
    checking for --enable-listctrl... yes
    checking for --enable-notebook... yes
    checking for --enable-notifmsg... yes
    checking for --enable-odcombobox... yes
    checking for --enable-popupwin... yes
    checking for --enable-prefseditor... yes
    checking for --enable-radiobox... yes
    checking for --enable-radiobtn... yes
    checking for --enable-richmsgdlg... yes
    checking for --enable-richtooltip... yes
    checking for --enable-rearrangectrl... yes
    checking for --enable-sash... yes
    checking for --enable-scrollbar... yes
    checking for --enable-searchctrl... yes
    checking for --enable-slider... yes
    checking for --enable-spinbtn... yes
    checking for --enable-spinctrl... yes
    checking for --enable-splitter... yes
    checking for --enable-statbmp... yes
    checking for --enable-statbox... yes
    checking for --enable-statline... yes
    checking for --enable-stattext... yes
    checking for --enable-statusbar... yes
    checking for --enable-taskbaricon... yes
    checking for --enable-tbarnative... yes
    checking for --enable-textctrl... yes
    checking for --enable-datepick... yes
    checking for --enable-tipwindow... yes
    checking for --enable-togglebtn... yes
    checking for --enable-toolbar... yes
    checking for --enable-toolbook... yes
    checking for --enable-treebook... yes
    checking for --enable-treectrl... yes
    checking for --enable-treelist... yes
    checking for --enable-commondlg... yes
    checking for --enable-aboutdlg... yes
    checking for --enable-choicedlg... yes
    checking for --enable-coldlg... yes
    checking for --enable-filedlg... yes
    checking for --enable-finddlg... yes
    checking for --enable-fontdlg... yes
    checking for --enable-dirdlg... yes
    checking for --enable-msgdlg... yes
    checking for --enable-numberdlg... yes
    checking for --enable-splash... yes
    checking for --enable-textdlg... yes
    checking for --enable-tipdlg... yes
    checking for --enable-progressdlg... yes
    checking for --enable-wizarddlg... yes
    checking for --enable-menus... yes
    checking for --enable-miniframe... yes
    checking for --enable-tooltips... yes
    checking for --enable-splines... yes
    checking for --enable-mousewheel... yes
    checking for --enable-validators... yes
    checking for --enable-busyinfo... yes
    checking for --enable-hotkey... auto
    checking for --enable-joystick... yes
    checking for --enable-metafile... auto
    checking for --enable-dragimage... yes
    checking for --enable-accessibility... no
    checking for --enable-uiactionsim... yes
    checking for --enable-dctransform... yes
    checking for --enable-webviewwebkit... yes
    checking for --enable-palette... yes
    checking for --enable-image... yes
    checking for --enable-gif... yes
    checking for --enable-pcx... yes
    checking for --enable-tga... yes
    checking for --enable-iff... yes
    checking for --enable-pnm... yes
    checking for --enable-xpm... yes
    checking for --enable-ico_cur... yes
    checking for --enable-dccache... yes
    checking for --enable-ps-in-msw... yes
    checking for --enable-ownerdrawn... yes
    checking for --enable-uxtheme... yes
    checking for --enable-wxdib... yes
    checking for --enable-webviewie... yes
    checking for --enable-autoidman... no
    checking for gcc... gcc
    checking whether the C compiler works... yes
    checking for C compiler default output file name... a.out
    checking for suffix of executables...
    checking whether we are cross compiling... no
    checking for suffix of object files... o
    checking whether we are using the GNU C compiler... yes
    checking whether gcc accepts -g... yes
    checking for gcc option 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
    checking for grep that handles long lines and -e... /bin/grep
    checking for egrep... /bin/grep -E
    checking whether gcc needs -traditional... no
    checking for 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
    checking for ar... ar
    checking for ANSI C header files... yes
    checking for sys/types.h... yes
    checking for sys/stat.h... yes
    checking for stdlib.h... yes
    checking for string.h... yes
    checking for memory.h... yes
    checking for strings.h... yes
    checking for inttypes.h... yes
    checking for stdint.h... yes
    checking for unistd.h... yes
    checking for langinfo.h... yes
    checking for wchar.h... yes
    checking for sys/select.h... yes
    checking for cxxabi.h... yes
    checking for an ANSI C-conforming const... yes
    checking for inline... inline
    checking size of short... 2
    checking size of void *... 8
    checking size of int... 4
    checking size of long... 8
    checking size of size_t... 8
    checking size of long long... 8
    checking size of wchar_t... 4
    checking for va_copy... yes
    checking whether the compiler supports variadic macros... yes
    checking for _FILE_OFFSET_BITS value needed for large files... 64
    checking if large file support is available... yes
    checking for _LARGEFILE_SOURCE value needed for large files... no
    checking whether byte ordering is bigendian... no
    checking for iostream... yes
    checking if C++ compiler supports the explicit keyword... yes
    checking for std::wstring in <string>... yes
    checking for std::istream... yes
    checking for std::ostream... yes
    checking how to run the C++ preprocessor... g++ -E
    checking type_traits usability... no
    checking type_traits presence... no
    checking for type_traits... no
    checking tr1/type_traits usability... yes
    checking tr1/type_traits presence... yes
    checking for tr1/type_traits... yes
    checking for __sync_fetch_and_add and __sync_sub_and_fetch builtins... yes
    checking for libraries directories... /usr/lib/x86_64-linux-gnu /usr/lib
    checking for cos... no
    checking for floor... no
    checking if floating point functions link without -lm... no
    checking for sin... yes
    checking for ceil... yes
    checking if floating point functions link with -lm... yes
    checking for strtoull... yes
    configure: WARNING: Defaulting to the builtin regex library for Unicode build.
    checking for zlib.h >= 1.1.4... no
    checking for zlib.h... (cached) no
    configure: WARNING: zlib library not found or too old, will use built-in instead
    checking for png.h > 0.90... no
    checking for png.h... (cached) no
    configure: WARNING: system png library not found or too old, will use built-in instead
    checking for jpeglib.h... no
    configure: WARNING: system jpeg library not found, will use built-in instead
    checking for tiffio.h... no
    configure: WARNING: system tiff library not found, will use built-in instead
    checking for lzma_code in -llzma... no
    checking for jbg_dec_init in -ljbig... no
    checking for expat.h... yes
    checking if expat.h is valid C++ header... yes
    checking for XML_ParserCreate in -lexpat... yes
    checking for GTK+ version...
    checking for pkg-config... /usr/bin/pkg-config
    checking for GTK+ - version >= 2.6.0... Package gtk+-2.0 was not found in the pkg-config search path.
    Perhaps you should add the directory containing `gtk+-2.0.pc'
    to the PKG_CONFIG_PATH environment variable
    No package 'gtk+-2.0' found
    Package gthread-2.0 was not found in the pkg-config search path.
    Perhaps you should add the directory containing `gthread-2.0.pc'
    to the PKG_CONFIG_PATH environment variable
    No package 'gthread-2.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 occurred. This usually means GTK+ is incorrectly installed.
    checking for pkg-config... (cached) /usr/bin/pkg-config
    checking for GTK+ - version >= 3.0.0... Package gtk+-3.0 was not found in the pkg-config search path.
    Perhaps you should add the directory containing `gtk+-3.0.pc'
    to the PKG_CONFIG_PATH environment variable
    No package 'gtk+-3.0' found
    Package gthread-2.0 was not found in the pkg-config search path.
    Perhaps you should add the directory containing `gthread-2.0.pc'
    to the PKG_CONFIG_PATH environment variable
    No package 'gthread-2.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.
    checking for gtk-config... no
    checking for GTK - version >= 1.2.7... no
    *** The gtk-config script installed by GTK could not be found
    *** If GTK was installed in PREFIX, make sure PREFIX/bin is in
    *** your path, or set the GTK_CONFIG environment variable to the
    *** full path to gtk-config.
    checking for gtk-config... (cached) no
    checking for GTK - version >= 1.2.3... no
    *** The gtk-config script installed by GTK could not be found
    *** If GTK was installed in PREFIX, make sure PREFIX/bin is in
    *** your path, or set the GTK_CONFIG environment variable to the
    *** full path to gtk-config.
    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 1188, in cmd_build_wx
        wxbuild.main(wxDir(), build_options)
      File "/tmp/pip-f7j6kdb0-build/buildtools/build_wxwidgets.py", line 368, in main
        "Error running configure")
      File "/tmp/pip-f7j6kdb0-build/buildtools/build_wxwidgets.py", line 85, in exitIfError
        raise builder.BuildError(msg)
    buildtools.builder.BuildError: Error running configure
    Finished command: build_wx (0m5.233s)
    Finished command: build (0m5.233s)
    Command '"/usr/bin/python3" -u build.py build' failed with exit code 1.

        ----------------------------------------
Command "/usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-f7j6kdb0-build/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('rn', 'n'), __file__, 'exec'))" install --record /tmp/pip-n5fq0woe-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-f7j6kdb0-build/
You are using pip version 8.1.2, however version 9.0.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
valerius@undead711:~/Downloads$ cd ~
valerius@undead711:~$ pip install --upgrade pip
Collecting pip
  Using cached pip-9.0.1-py2.py3-none-any.whl
Installing collected packages: pip
  Found existing installation: pip 8.1.2
    Uninstalling pip-8.1.2:
      Successfully uninstalled pip-8.1.2
  Rolling back uninstall of pip
Exception:
Traceback (most recent call last):
  File "/home/valerius/.local/lib/python3.5/site-packages/pip/basecommand.py", line 215, in main
    status = self.run(options, args)
  File "/home/valerius/.local/lib/python3.5/site-packages/pip/commands/install.py", line 317, in run
    prefix=options.prefix_path,
  File "/home/valerius/.local/lib/python3.5/site-packages/pip/req/req_set.py", line 742, in install
    **kwargs
  File "/home/valerius/.local/lib/python3.5/site-packages/pip/req/req_install.py", line 831, in install
    self.move_wheel_files(self.source_dir, root=root, prefix=prefix)
  File "/home/valerius/.local/lib/python3.5/site-packages/pip/req/req_install.py", line 1032, in move_wheel_files
    isolated=self.isolated,
  File "/home/valerius/.local/lib/python3.5/site-packages/pip/wheel.py", line 346, in move_wheel_files
    clobber(source, lib_dir, True)
  File "/home/valerius/.local/lib/python3.5/site-packages/pip/wheel.py", line 317, in clobber
    ensure_dir(destdir)
  File "/home/valerius/.local/lib/python3.5/site-packages/pip/utils/__init__.py", line 83, in ensure_dir
    os.makedirs(path)
  File "/usr/lib/python3.5/os.py", line 241, in makedirs
    mkdir(name, mode)
PermissionError: [Errno 13] Permission denied: '/usr/local/lib/python3.5/dist-packages/pip-9.0.1.dist-info'
You are using pip version 8.1.2, however version 9.0.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
valerius@undead711:~$

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
Microsoft Windows [Version 6.3.9600]
(c) Корпорация Майкрософт (Microsoft Corporation), 2013. Все права защищены.
 
C:UsersDmitriy>pip install wxpython
Collecting wxpython
  Using cached wxPython-4.1.1.tar.gz (66.0 MB)
  Preparing metadata (setup.py) ... done
Requirement already satisfied: pillow in c:usersdmitriyappdatalocalprograms
pythonpython310libsite-packages (from wxpython) (9.0.0)
Requirement already satisfied: six in c:usersdmitriyappdatalocalprogramspy
thonpython310libsite-packages (from wxpython) (1.16.0)
Requirement already satisfied: numpy in c:usersdmitriyappdatalocalprograms
pythonpython310libsite-packages (from wxpython) (1.22.0)
Building wheels for collected packages: wxpython
  Building wheel for wxpython (setup.py) ... error
  ERROR: Command errored out with exit status 1:
   command: 'C:UsersDmitriyAppDataLocalProgramsPythonPython310python.exe
' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users
Dmitriy\AppData\Local\Temp\pip-install-1ko9qywb\wxpython_67bc6c26c45346969
6f77cfb1b010d72\setup.py'"'"'; __file__='"'"'C:\Users\Dmitriy\AppData\Local
\Temp\pip-install-1ko9qywb\wxpython_67bc6c26c453469696f77cfb1b010d72\setup.p
y'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(_
_file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code
= f.read().replace('"'"'rn'"'"', '"'"'n'"'"');f.close();exec(compile(code, __
file__, '"'"'exec'"'"'))' bdist_wheel -d 'C:UsersDmitriyAppDataLocalTemppi
p-wheel-28pu8w28'
       cwd: C:UsersDmitriyAppDataLocalTemppip-install-1ko9qywbwxpython_67
bc6c26c453469696f77cfb1b010d72
  Complete output (51 lines):
  C:UsersDmitriyAppDataLocalProgramsPythonPython310libsite-packagesset
uptoolsdist.py:717: UserWarning: Usage of dash-separated 'license-file' will no
t be supported in future versions. Please use the underscore name 'license_file'
 instead
    warnings.warn(
  C:UsersDmitriyAppDataLocalProgramsPythonPython310libsite-packagesset
uptoolsdist.py:294: DistDeprecationWarning: use_2to3 is ignored.
    warnings.warn(f"{attr} is ignored.", DistDeprecationWarning)
  running bdist_wheel
  running build
  C:UsersDmitriyAppDataLocalTemppip-install-1ko9qywbwxpython_67bc6c26c453
469696f77cfb1b010d72build.py:41: DeprecationWarning: The distutils package is d
eprecated and slated for removal in Python 3.12. Use setuptools or check PEP 632
 for potential alternatives
    from distutils.dep_util import newer, newer_group
  Will build using: "C:UsersDmitriyAppDataLocalProgramsPythonPython310py
thon.exe"
  3.10.1 (tags/v3.10.1:2cd268a, Dec  6 2021, 19:10:37) [MSC v.1929 64 bit (AMD64
)]
  Python's architecture is 64bit
  cfg.VERSION: 4.1.1
 
  Running command: build
  Running command: build_wx
  Command '"C:UsersDmitriyAppDataLocalProgramsPythonPython310python.exe"
 -c "import setuptools, distutils.msvc9compiler as msvc; mc = msvc.MSVCCompiler(
); mc.initialize(); print(mc.cc)"' failed with exit code 1.
  Traceback (most recent call last):
 
    File "<string>", line 1, in <module>
 
    File "C:UsersDmitriyAppDataLocalProgramsPythonPython310libdistutils
msvc9compiler.py", line 371, in initialize
 
      vc_env = query_vcvarsall(VERSION, plat_spec)
 
    File "C:UsersDmitriyAppDataLocalProgramsPythonPython310libsite-pack
agessetuptoolsmsvc.py", line 140, in msvc9_query_vcvarsall
 
      return EnvironmentInfo(arch, ver).return_env()
 
    File "C:UsersDmitriyAppDataLocalProgramsPythonPython310libsite-pack
agessetuptoolsmsvc.py", line 1740, in return_env
 
      [self.VCIncludes,
 
    File "C:UsersDmitriyAppDataLocalProgramsPythonPython310libsite-pack
agessetuptoolsmsvc.py", line 1282, in VCIncludes
 
      return [join(self.si.VCInstallDir, 'Include'),
 
    File "C:UsersDmitriyAppDataLocalProgramsPythonPython310libsite-pack
agessetuptoolsmsvc.py", line 840, in VCInstallDir
 
      raise distutils.errors.DistutilsPlatformError(msg)
 
  distutils.errors.DistutilsPlatformError: Microsoft Visual C++ 14.2 or greater
is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.micro
soft.com/visual-cpp-build-tools/
  Finished command: build_wx (0m1.200s)
  Finished command: build (0m1.200s)
  WARNING: Building this way assumes that all generated files have been
  generated already.  If that is not the case then use build.py directly
  to generate the source and perform the build stage.  You can use
  --skip-build with the bdist_* or install commands to avoid this
  message and the wxWidgets and Phoenix build steps in the future.
 
  "C:UsersDmitriyAppDataLocalProgramsPythonPython310python.exe" -u build
.py build
  Command '"C:UsersDmitriyAppDataLocalProgramsPythonPython310python.exe"
 -u build.py build' failed with exit code 1.
  ----------------------------------------
  ERROR: Failed building wheel for wxpython
  Running setup.py clean for wxpython
Failed to build wxpython
Installing collected packages: wxpython
    Running setup.py install for wxpython ... error
    ERROR: Command errored out with exit status 1:
     command: 'C:UsersDmitriyAppDataLocalProgramsPythonPython310python.e
xe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\User
s\Dmitriy\AppData\Local\Temp\pip-install-1ko9qywb\wxpython_67bc6c26c453469
696f77cfb1b010d72\setup.py'"'"'; __file__='"'"'C:\Users\Dmitriy\AppData\Loc
al\Temp\pip-install-1ko9qywb\wxpython_67bc6c26c453469696f77cfb1b010d72\setup
.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists
(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');cod
e = f.read().replace('"'"'rn'"'"', '"'"'n'"'"');f.close();exec(compile(code,
__file__, '"'"'exec'"'"'))' install --record 'C:UsersDmitriyAppDataLocalTem
ppip-record-zc0nls2zinstall-record.txt' --single-version-externally-managed --
compile --install-headers 'C:UsersDmitriyAppDataLocalProgramsPythonPython
310Includewxpython'
         cwd: C:UsersDmitriyAppDataLocalTemppip-install-1ko9qywbwxpython_
67bc6c26c453469696f77cfb1b010d72
    Complete output (51 lines):
    C:UsersDmitriyAppDataLocalProgramsPythonPython310libsite-packagess
etuptoolsdist.py:717: UserWarning: Usage of dash-separated 'license-file' will
not be supported in future versions. Please use the underscore name 'license_fil
e' instead
      warnings.warn(
    C:UsersDmitriyAppDataLocalProgramsPythonPython310libsite-packagess
etuptoolsdist.py:294: DistDeprecationWarning: use_2to3 is ignored.
      warnings.warn(f"{attr} is ignored.", DistDeprecationWarning)
    running install
    running build
    C:UsersDmitriyAppDataLocalTemppip-install-1ko9qywbwxpython_67bc6c26c4
53469696f77cfb1b010d72build.py:41: DeprecationWarning: The distutils package is
 deprecated and slated for removal in Python 3.12. Use setuptools or check PEP 6
32 for potential alternatives
      from distutils.dep_util import newer, newer_group
    Will build using: "C:UsersDmitriyAppDataLocalProgramsPythonPython310
python.exe"
    3.10.1 (tags/v3.10.1:2cd268a, Dec  6 2021, 19:10:37) [MSC v.1929 64 bit (AMD
64)]
    Python's architecture is 64bit
    cfg.VERSION: 4.1.1
 
    Running command: build
    Running command: build_wx
    Command '"C:UsersDmitriyAppDataLocalProgramsPythonPython310python.ex
e" -c "import setuptools, distutils.msvc9compiler as msvc; mc = msvc.MSVCCompile
r(); mc.initialize(); print(mc.cc)"' failed with exit code 1.
    Traceback (most recent call last):
 
      File "<string>", line 1, in <module>
 
      File "C:UsersDmitriyAppDataLocalProgramsPythonPython310libdistuti
lsmsvc9compiler.py", line 371, in initialize
 
        vc_env = query_vcvarsall(VERSION, plat_spec)
 
      File "C:UsersDmitriyAppDataLocalProgramsPythonPython310libsite-pa
ckagessetuptoolsmsvc.py", line 140, in msvc9_query_vcvarsall
 
        return EnvironmentInfo(arch, ver).return_env()
 
      File "C:UsersDmitriyAppDataLocalProgramsPythonPython310libsite-pa
ckagessetuptoolsmsvc.py", line 1740, in return_env
 
        [self.VCIncludes,
 
      File "C:UsersDmitriyAppDataLocalProgramsPythonPython310libsite-pa
ckagessetuptoolsmsvc.py", line 1282, in VCIncludes
 
        return [join(self.si.VCInstallDir, 'Include'),
 
      File "C:UsersDmitriyAppDataLocalProgramsPythonPython310libsite-pa
ckagessetuptoolsmsvc.py", line 840, in VCInstallDir
 
        raise distutils.errors.DistutilsPlatformError(msg)
 
    distutils.errors.DistutilsPlatformError: Microsoft Visual C++ 14.2 or greate
r is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.mic
rosoft.com/visual-cpp-build-tools/
    Finished command: build_wx (0.379s)
    Finished command: build (0.379s)
    WARNING: Building this way assumes that all generated files have been
    generated already.  If that is not the case then use build.py directly
    to generate the source and perform the build stage.  You can use
    --skip-build with the bdist_* or install commands to avoid this
    message and the wxWidgets and Phoenix build steps in the future.
 
    "C:UsersDmitriyAppDataLocalProgramsPythonPython310python.exe" -u bui
ld.py build
    Command '"C:UsersDmitriyAppDataLocalProgramsPythonPython310python.ex
e" -u build.py build' failed with exit code 1.
    ----------------------------------------
ERROR: Command errored out with exit status 1: 'C:UsersDmitriyAppDataLocalP
rogramsPythonPython310python.exe' -u -c 'import io, os, sys, setuptools, toke
nize; sys.argv[0] = '"'"'C:\Users\Dmitriy\AppData\Local\Temp\pip-install-1
ko9qywb\wxpython_67bc6c26c453469696f77cfb1b010d72\setup.py'"'"'; __file__='"'"
'C:\Users\Dmitriy\AppData\Local\Temp\pip-install-1ko9qywb\wxpython_67bc6c
26c453469696f77cfb1b010d72\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"',
open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptool
s import setup; setup()'"'"');code = f.read().replace('"'"'rn'"'"', '"'"'n'"'
"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:UsersDmitriyAppDataLocalTemppip-record-zc0nls2zinstall-record.txt' --single-version-externally-managed --compile --install-headers 'C:UsersDmitriyAppDataLocalProgramsPythonPython310Includewxpython' Check the logs for full command output

ещё одна попытка через убунту может кто поможет?

valerius@undead711:~$ python3
Python 3.5.2 (default, Sep 10 2016, 08:21:44)
[GCC 5.4.0 20160609] on linux
Type «help», «copyright», «credits» or «license» for more information.
>>> 4*4
16
>>> exit()
valerius@undead711:~$ sudo apt-get install python3-pip
valerius@undead711:~$ sudo apt-get upgrade
valerius@undead711:~$ pip3
Usage:
pip [options]
Commands:
install Install packages.

valerius@undead711:~$ sudo pip3 install —upgrade —trusted-host wxpython.org —pre -f wxpython.org/Phoenix/snapshot-builds wxPython_Phoenix
The directory ‘/home/valerius/.cache/pip/http’ or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo’s -H flag.
The directory ‘/home/valerius/.cache/pip’ or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo’s -H flag.
и на 21% выдает ещё
такой кровавый текст:

Exception:
Traceback (most recent call last):
File «/usr/share/python-wheels/urllib3-1.13.1-py2.py3-none-any.whl/urllib3/response.py», line 226, in _error_catcher
yield
File «/usr/share/python-wheels/urllib3-1.13.1-py2.py3-none-any.whl/urllib3/response.py», line 301, in read
data = self._fp.read(amt)
File «/usr/lib/python3.5/http/client.py», line 448, in read
n = self.readinto(b)
File «/usr/lib/python3.5/http/client.py», line 488, in readinto
n = self.fp.readinto(b)
File «/usr/lib/python3.5/socket.py», line 575, in readinto
return self._sock.recv_into(b)
File «/usr/lib/python3.5/ssl.py», line 929, in recv_into
return self.read(nbytes, buffer)
File «/usr/lib/python3.5/ssl.py», line 791, in read
return self._sslobj.read(len, buffer)
File «/usr/lib/python3.5/ssl.py», line 575, in read
v = self._sslobj.read(len, buffer)
socket.timeout: The read operation timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File «/usr/lib/python3/dist-packages/pip/basecommand.py», line 209, in main
status = self.run(options, args)
File «/usr/lib/python3/dist-packages/pip/commands/install.py», line 317, in run
requirement_set.prepare_files(finder)
File «/usr/lib/python3/dist-packages/pip/req/req_set.py», line 360, in prepare_files
ignore_dependencies=self.ignore_dependencies))
File «/usr/lib/python3/dist-packages/pip/req/req_set.py», line 577, in _prepare_file
session=self.session, hashes=hashes)
File «/usr/lib/python3/dist-packages/pip/download.py», line 810, in unpack_url
hashes=hashes
File «/usr/lib/python3/dist-packages/pip/download.py», line 649, in unpack_http_url
hashes)
File «/usr/lib/python3/dist-packages/pip/download.py», line 871, in _download_http_url
_download_url(resp, link, content_file, hashes)
File «/usr/lib/python3/dist-packages/pip/download.py», line 597, in _download_url
consume(downloaded_chunks)
File «/usr/lib/python3/dist-packages/pip/utils/__init__.py», line 878, in consume
deque(iterator, maxlen=0)
File «/usr/lib/python3/dist-packages/pip/download.py», line 563, in written_chunks
for chunk in chunks:
File «/usr/lib/python3/dist-packages/pip/utils/ui.py», line 139, in iter
for x in it:
File «/usr/lib/python3/dist-packages/pip/download.py», line 552, in resp_read
decode_content=False):
File «/usr/share/python-wheels/urllib3-1.13.1-py2.py3-none-any.whl/urllib3/response.py», line 344, in stream
data = self.read(amt=amt, decode_content=decode_content)
File «/usr/share/python-wheels/urllib3-1.13.1-py2.py3-none-any.whl/urllib3/response.py», line 311, in read
flush_decoder = True
File «/usr/lib/python3.5/contextlib.py», line 77, in __exit__
self.gen.throw(type, value, traceback)
File «/usr/share/python-wheels/urllib3-1.13.1-py2.py3-none-any.whl/urllib3/response.py», line 231, in _error_catcher
raise ReadTimeoutError(self._pool, None, ‘Read timed out.’)
pip._vendor.requests.packages.urllib3.exceptions.ReadTimeoutError: HTTPSConnectionPool(host=’wxpython.org’, port=443): Read timed out.

Понравилась статья? Поделить с друзьями:
  • Error fail to boot fdl
  • Error f041 kyocera
  • Error extraneous closing brace
  • Error extracting support files разрушительный сбой
  • Error extracting msi 32