your issue rC:UsersHP>pip install -U 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:pythonlibsite-packages (from wxPython) (8.4.0)
Requirement already satisfied: six in c:pythonlibsite-packages (from wxPython) (1.16.0)
Requirement already satisfied: numpy in c:pythonlibsite-packages (from wxPython) (1.21.4)
Using legacy ‘setup.py install’ for wxPython, since package ‘wheel’ is not installed.
Installing collected packages: wxPython
Running setup.py install for wxPython … error
ERROR: Command errored out with exit status 1:
command: ‘C:pythonpython.exe’ -u -c ‘import io, os, sys, setuptools, tokenize; sys.argv[0] = ‘»‘»‘C:UsersHPAppDataLocalTemppip-install-72by_mwfwxpython_a8f2bd6de2d945b69743e5fd61117a3bsetup.py'»‘»‘; file='»‘»‘C:UsersHPAppDataLocalTemppip-install-72by_mwfwxpython_a8f2bd6de2d945b69743e5fd61117a3bsetup.py'»‘»‘;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'»‘»‘))’ install —record ‘C:UsersHPAppDataLocalTemppip-record-pmvep6e2install-record.txt’ —single-version-externally-managed —compile —install-headers ‘C:pythonIncludewxPython’
cwd: C:UsersHPAppDataLocalTemppip-install-72by_mwfwxpython_a8f2bd6de2d945b69743e5fd61117a3b
Complete output (49 lines):
C:pythonlibsite-packagessetuptoolsdist.py:697: UserWarning: Usage of dash-separated ‘license-file’ will not be supported in future versions. Please use the underscore name ‘license_file’ instead
warnings.warn(
running install
running build
C:UsersHPAppDataLocalTemppip-install-72by_mwfwxpython_a8f2bd6de2d945b69743e5fd61117a3bbuild.py:41: DeprecationWarning: The distutils package is deprecated 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:pythonpython.exe»
3.10.0 (tags/v3.10.0:b494f59, Oct 4 2021, 19:00:18) [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:pythonpython.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:pythonlibdistutilsmsvc9compiler.py", line 371, in initialize
vc_env = query_vcvarsall(VERSION, plat_spec)
File "C:pythonlibsite-packagessetuptoolsmsvc.py", line 140, in msvc9_query_vcvarsall
return EnvironmentInfo(arch, ver).return_env()
File "C:pythonlibsite-packagessetuptoolsmsvc.py", line 1740, in return_env
[self.VCIncludes,
File "C:pythonlibsite-packagessetuptoolsmsvc.py", line 1282, in VCIncludes
return [join(self.si.VCInstallDir, 'Include'),
File "C:pythonlibsite-packagessetuptoolsmsvc.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.microsoft.com/visual-cpp-build-tools/
Finished command: build_wx (0.265s)
Finished command: build (0.265s)
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:pythonpython.exe" -u build.py build
Command '"C:pythonpython.exe" -u build.py build' failed with exit code 1.
----------------------------------------
ERROR: Command errored out with exit status 1: ‘C:pythonpython.exe’ -u -c ‘import io, os, sys, setuptools, tokenize; sys.argv[0] = ‘»‘»‘C:UsersHPAppDataLocalTemppip-install-72by_mwfwxpython_a8f2bd6de2d945b69743e5fd61117a3bsetup.py'»‘»‘; file='»‘»‘C:UsersHPAppDataLocalTemppip-install-72by_mwfwxpython_a8f2bd6de2d945b69743e5fd61117a3bsetup.py'»‘»‘;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'»‘»‘))’ install —record ‘C:UsersHPAppDataLocalTemppip-record-pmvep6e2install-record.txt’ —single-version-externally-managed —compile —install-headers ‘C:pythonIncludewxPython’ Check the logs for full command output.
I am installing wxPython in ubuntu-22.04 but after download It has not installing it give me an error you can see…
>>>Installing collected packages: 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
╰─> [140 lines of output]
/home/boss/.local/lib/python3.10/site-packages/setuptools/dist.py:772: 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/boss/.local/lib/python3.10/site-packages/setuptools/config/setupcfg.py:459: SetuptoolsDeprecationWarning: The license_file parameter is deprecated, use license_files instead.
warnings.warn(msg, warning_class)
/home/boss/.local/lib/python3.10/site-packages/setuptools/dist.py:318: DistDeprecationWarning: use_2to3 is ignored.
warnings.warn(f"{attr} is ignored.", DistDeprecationWarning)
running install
/home/boss/.local/lib/python3.10/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.
"/usr/bin/python3" -u build.py build
Will build using: "/usr/bin/python3"
3.10.4 (main, Apr 2 2022, 09:04:19) [GCC 11.2.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-k1_ee31n/wxpython_d14f6b15c6be4966bf59cdf6bba274fb/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... no
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... no
checking for GTK+ - version >= 3.0.0... no
*** A new enough version of pkg-config was not found.
*** See http://pkgconfig.sourceforge.net
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 "/tmp/pip-install-k1_ee31n/wxpython_d14f6b15c6be4966bf59cdf6bba274fb/build.py", line 1510, in cmd_build_wx
wxbuild.main(wxDir(), build_options)
File "/tmp/pip-install-k1_ee31n/wxpython_d14f6b15c6be4966bf59cdf6bba274fb/buildtools/build_wxwidgets.py", line 372, in main
exitIfError(wxBuilder.configure(dir=wxRootDir, options=configure_opts),
File "/tmp/pip-install-k1_ee31n/wxpython_d14f6b15c6be4966bf59cdf6bba274fb/buildtools/build_wxwidgets.py", line 85, in exitIfError
raise builder.BuildError(msg)
buildtools.builder.BuildError: Error running configure
Finished command: build_wx (0m7.799s)
Finished command: build (0m7.799s)
Command '"/usr/bin/python3" -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.
I have allready run many commands
like this
sudo apt install -y doxygen
sudo apt install -y graphviz
python3 -m pip install wxPython
pip install wheel
pip install nes-py
pip install Cmake
pip install nes-py --no-cache-dir
pip install sip==5.5.0
pip install -U -f https://extras.wxpython.org/wxPython4/extras/linux/gtk3/ubuntu-22.04 wxPython
but I didn’t get it.
I am trying to install wxPython on a new installation of Ubuntu 18.04 using the command
pip3 install wxPython
The build fails with
error: [Errno 2] No such file or directory: 'build/lib.linux-x86_64-3.6/wx/libwx_baseu-3.0.so'
----------------------------------------
Command "/usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-30uqzd2e/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-hynl659w-record/install-record.txt --single-version-externally-managed --compile --user --prefix=" failed with error code 1 in /tmp/pip-build-30uqzd2e/wxPython/
I have no idea where to look for a solution. Can someone please suggest where I might start
[EDIT 20200424 08:06]
I looked in
/usr/lib/x86_64-linux-gnu/
and
libwx_baseu-3.0.so.0
was absent. I have installed it from this site
It is now present, but the install fails with the same message
asked Apr 23, 2020 at 15:05
1
I have managed to install wxPython.
I reinstalled Ubuntu 18.04 and performed the following:
sudo apt install make gcc libgtk-3-dev libwebkitgtk-dev libwebkitgtk-3.0-dev libgstreamer-gl1.0-0 freeglut3 freeglut3-dev python-gst-1.0 python3-gst-1.0 libglib2.0-dev ubuntu-restricted-extras libgstreamer-plugins-base1.0-dev
pip3 install wxpython
I guess that when it was failing I had tried many fixes and somewhere along the line something was corrupted or there was a mismatch somewhere.
My solution was based on this answer
answered Apr 28, 2020 at 8:39
PsionmanPsionman
2,8321 gold badge31 silver badges58 bronze badges
I Installed wx.python 4.1.0 yesterday with:
URL=https://extras.wxpython.org/wxPython4/extras/linux/gtk2/ubuntu-18.04
pip install -U -f $URL wxPython
See: https://extras.wxpython.org/wxPython4/extras/ for details.
For gtk3 simply replace gtk2 in the url above.
answered Apr 26, 2020 at 15:54
Rolf of SaxonyRolf of Saxony
20.9k3 gold badges36 silver badges56 bronze badges
3
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.
most of time we may meet some installation and lib dependency problems. For the latest Ubuntu version, the problems still happen. Below are some common problems which happened frequently and their solution:
—————————————————————————————————————
Problem [1]: Install wxPython on Ubuntu 20.04 fail because of dependency package Gtk is not installed.
Error Message:
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.
OS Platform : Ubuntu 16.04, Ubuntu 18.04, Ubuntu 20.04.
Type: Dependency package not installed.
Solution:
- Solution[1]: Install wxPython package with Gtk package bind in:
sudo apt install libgtk-3-dev sudo apt-get install python-wxgtk3.0​ - Solution [2] : If solution[1] shows install error for latest Ubuntu version(20.04), install the related dependency package:
sudo apt-get install python3-wxgtk4.0 python3-wxgtk-webview4.0 python3-wxgtk-media4.0​ - Solution[3] : After finished the step in solution[2] and also try pip-installation «pip install wxPython». If the pip-installation still not work, install the specific wxPython package(it is compatible for 20.04 ):
sudo pip3 install -U -f https://extras.wxpython.org/wxPython4/extras/linux/gtk3/ubuntu-16.04 wxPython​
—————————————————————————————————————
Problem [2]: Successfully installed wxPython package but got error during import it in program.
Error Message:
python 3.8.2 (default, Jul 16 2020, 14:00:26)
[GCC 9.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import wx
Traceback (most recent call last):
File "", line 1, in
File "/usr/local/lib/python3.8/dist-packages/wx/__init__.py", line 17, in
from wx.core import *
File "/usr/local/lib/python3.8/dist-packages/wx/core.py", line 12, in
from ._core import *
ImportError: libSDL2-2.0.so.0: cannot open shared object file: No such file or directory
OS Platform : Ubuntu 20.04.
Type: wxPython_v4.x related lib SDL2-X packages are not installed.
Solution:
sudo apt-get install git curl libsdl2-mixer-2.0-0 libsdl2-image-2.0-0 libsdl2-2.0-0
—————————————————————————————————————
Problem [3]: Successfully installed wxPython package but got error during import it in program.
Error Message:
Python 3.8.2 (default, Jul 16 2020, 14:00:26)
[GCC 9.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import wx
Traceback (most recent call last):
File "", line 1, in
File "/usr/local/lib/python3.8/dist-packages/wx/__init__.py", line 17, in
from wx.core import *
File "/usr/local/lib/python3.8/dist-packages/wx/core.py", line 12, in
from ._core import *
ImportError: libpng12.so.0: cannot open shared object file: No such file or directory
OS Platform : Ubuntu 20.04.
Type: wxPython_v4.x related lib png12/14 packages are not installed.
Solution:
Download the lib deb «libpng12-0_1.2.54-1ubuntu1b_amd64.deb» from below link :
https://www.dropbox.com/s/79x3imq73tcqyw4/libpng12-0_1.2.54-1ubuntu1b_amd64.deb?dl=0 or https://github.com/LiuYuancheng/Power_Generator_Manager/blob/master/lib/libpng12-0_1.2.54-1ubuntu1b_amd64.deb
Install the lib by cmd:
sudo dpkg -i libpng12-0_1.2.54-1ubuntu1b_amd64.deb
Note: This post is authorized to republish here by Yuancheng Liu, Systems Software Engineer at ZycraftUSV.PTE.LTD. Original post is here.
Windows10
Python 3.10.3
я его скачивал и он выдал c начало одну ошибку, но я её не запомнил потом переустановил Python и снова попробовал установить и выдаёт огромную ошибку
error: subprocess-exited-with-error
× Running setup.py install for wxPython did not run successfully.
│ exit code: 1
╰─> [51 lines of output]
C:UsersuserAppDataLocalProgramsPythonPython310libsite-packagessetuptoolsdist.py:717: UserWarning: Usage of dash-separated ‘license-file’ will not be supported in future versions. Please use the underscore name ‘license_file’ instead
warnings.warn(
C:UsersuserAppDataLocalProgramsPythonPython310libsite-packagessetuptoolsdist.py:294: DistDeprecationWarning: use_2to3 is ignored.
warnings.warn(f»{attr} is ignored.», DistDeprecationWarning)
running install
running build
C:UsersuserAppDataLocalTemppip-install-oaw50g0cwxpython_8c0d0c6bad644d94a3a3ba6a119b91b4build.py:41: DeprecationWarning: The distutils package is deprecated 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:UsersuserAppDataLocalProgramsPythonPython310python.exe»
3.10.3 (tags/v3.10.3:a342a49, Mar 16 2022, 13:07:40) [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:UsersuserAppDataLocalProgramsPythonPython310python.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:UsersuserAppDataLocalProgramsPythonPython310libdistutilsmsvc9compiler.py», line 371, in initialize
vc_env = query_vcvarsall(VERSION, plat_spec)
File «C:UsersuserAppDataLocalProgramsPythonPython310libsite-packagessetuptoolsmsvc.py», line 140, in msvc9_query_vcvarsall
return EnvironmentInfo(arch, ver).return_env()
File «C:UsersuserAppDataLocalProgramsPythonPython310libsite-packagessetuptoolsmsvc.py», line 1740, in return_env
[self.VCIncludes,
File «C:UsersuserAppDataLocalProgramsPythonPython310libsite-packagessetuptoolsmsvc.py», line 1282, in VCIncludes
return [join(self.si.VCInstallDir, ‘Include’),
File «C:UsersuserAppDataLocalProgramsPythonPython310libsite-packagessetuptoolsmsvc.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.microsoft.com/visual-cpp-build-tools/
Finished command: build_wx (0m1.189s)
Finished command: build (0m1.189s)
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:UsersuserAppDataLocalProgramsPythonPython310python.exe» -u build.py build
Command ‘»C:UsersuserAppDataLocalProgramsPythonPython310python.exe» -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.
Помогите, пожалуйста!
