Skip to content

Can't build with python 3.14 (Windows) - No Microsoft Visual C++ version found #22

@luizrlima2

Description

@luizrlima2

I am unable to build the project on Windows 11 when using Python 3.14

Followed the instructions

git clone https://github.com/Relrin/kurier.git
cd kurier
python -m venv venv
venv\Scripts\activate
pip install -r requirements.txt --> ERROR

Environment Details
Operating System: Windows 11
Python Version: 3.14
Pip Version: 26.1

(venv) C:\Users\luizr\kurier>pip install -r requirements.txt
Collecting wxPython==4.2.3 (from -r requirements.txt (line 1))
Using cached wxPython-4.2.3.tar.gz (58.9 MB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
Collecting Pypubsub==4.0.3 (from -r requirements.txt (line 2))
Using cached Pypubsub-4.0.3-py3-none-any.whl.metadata (2.2 kB)
Collecting pika==1.3.1 (from -r requirements.txt (line 3))
Using cached pika-1.3.1-py3-none-any.whl.metadata (13 kB)
Using cached Pypubsub-4.0.3-py3-none-any.whl (61 kB)
Using cached pika-1.3.1-py3-none-any.whl (155 kB)
Building wheels for collected packages: wxPython
Building wheel for wxPython (pyproject.toml) ... error
error: subprocess-exited-with-error

× Building wheel for wxPython (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [75 lines of output]
C:\Users\luizr\AppData\Local\Temp\pip-build-env-njx17rpw\overlay\Lib\site-packages\setuptools\config_apply_pyprojecttoml.py:61: SetuptoolsDeprecationWarning: License classifiers are deprecated.
!!

          ********************************************************************************
          Please consider removing the following classifiers in favor of a SPDX license expression:

          License :: OSI Approved

          See https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license for details.
          ********************************************************************************

  !!
    dist._finalize_license_expression()
  C:\Users\luizr\AppData\Local\Temp\pip-build-env-njx17rpw\overlay\Lib\site-packages\setuptools\dist.py:765: SetuptoolsDeprecationWarning: License classifiers are deprecated.
  !!

          ********************************************************************************
          Please consider removing the following classifiers in favor of a SPDX license expression:

          License :: OSI Approved

          See https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license for details.
          ********************************************************************************

  !!
    self._finalize_license_expression()
  running bdist_wheel
  running build
  Will build using: "C:\Users\luizr\kurier\venv\Scripts\python.exe"
  3.14.4 (tags/v3.14.4:23116f9, Apr  7 2026, 14:10:54) [MSC v.1944 64 bit (AMD64)]
  Python's architecture is 64bit
  cfg.VERSION: 4.2.3

  Running command: build
  Running command: build_wx
  Command '"C:\Users\luizr\kurier\venv\Scripts\python.exe" -c "import os, sys, setuptools.msvc; setuptools.msvc.isfile = lambda path: path is not None and os.path.isfile(path); ei = setuptools.msvc.EnvironmentInfo('x64', vc_min_ver=14.0); env = ei.return_env(); env['vc_ver'] = ei.vc_ver; env['vs_ver'] = ei.vs_ver; env['arch'] = ei.pi.arch; env['py_ver'] = sys.version_info[:2]; print(env)"' failed with exit code 1.
  Traceback (most recent call last):

    File "<string>", line 1, in <module>

      import os, sys, setuptools.msvc; setuptools.msvc.isfile = lambda path: path is not None and os.path.isfile(path); ei = setuptools.msvc.EnvironmentInfo('x64', vc_min_ver=14.0); env = ei.return_env(); env['vc_ver'] = ei.vc_ver; env['vs_ver'] = ei.vs_ver; env['arch'] = ei.pi.arch; env['py_ver'] = sys.version_info[:2]; print(env)

                                                                                                                             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^

    File "C:\Users\luizr\AppData\Local\Temp\pip-build-env-njx17rpw\overlay\Lib\site-packages\setuptools\msvc.py", line 931, in __init__

      self.si = SystemInfo(self.ri, vc_ver)

                ~~~~~~~~~~^^^^^^^^^^^^^^^^^

    File "C:\Users\luizr\AppData\Local\Temp\pip-build-env-njx17rpw\overlay\Lib\site-packages\setuptools\msvc.py", line 385, in __init__

      self.vs_ver = self.vc_ver = vc_ver or self._find_latest_available_vs_ver()

                                            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^

    File "C:\Users\luizr\AppData\Local\Temp\pip-build-env-njx17rpw\overlay\Lib\site-packages\setuptools\msvc.py", line 399, in _find_latest_available_vs_ver

      raise distutils.errors.DistutilsPlatformError(

          'No Microsoft Visual C++ version found'

      )

  distutils.errors.DistutilsPlatformError: No Microsoft Visual C++ version found
  Finished command: build_wx (0.573s)
  Finished command: build (0.573s)
  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:\Users\luizr\kurier\venv\Scripts\python.exe" -u build.py build
  Command '"C:\Users\luizr\kurier\venv\Scripts\python.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: Failed building wheel for wxPython
Failed to build wxPython
error: failed-wheel-build-for-install

× Failed to build installable wheels for some pyproject.toml based projects
╰─> wxPython

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions