wxpython_install_error_fix.txt

For long error listing see wxpython_install_error.txt.txt


Abreviated listing:
PS C:\Users\raysm\vscode\resource_lib\src> py -m pip --no-cache-dir install wxpython
Collecting wxpython
  Downloading wxPython-4.2.3.tar.gz (58.9 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 58.9/58.9 MB 78.3 MB/s  0:00:00
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
Building wheels for collected packages: wxpython
  Building wheel for wxpython (pyproject.toml) ... error
  error: subprocess-exited-with-error

...
      distutils.errors.DistutilsPlatformError: No Microsoft Visual C++ version found
  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

One approach - install from wheel
From pypi wxPython entry, find wheel
Example: 
"C:\Users\Owner\Downloads\wxpython-4.2.3-cp313-cp313-win_amd64.whl"
Install this wheel.
Note that installing a wheel requires an exact python.exe.
In our case: 3.13.x python

Fully qualify the python.exe if your py doesn't access the desired python.ext:
PS C:\Users\raysm\vscode\graphics_braille_main> c:\Users\Owner\AppData\Local\Programs\Python\Python313\python.exe  -m pip --no-cache-dir install C:\Users\Owner\Downloads\wxpython-4.2.3-cp313-cp313-win_amd64.whl  --force-reinstall
Processing c:\users\owner\downloads\wxpython-4.2.3-cp313-cp313-win_amd64.whl
Installing collected packages: wxpython
  Attempting uninstall: wxpython
    Found existing installation: wxPython 4.2.3
    Uninstalling wxPython-4.2.3:
      Successfully uninstalled wxPython-4.2.3
Successfully installed wxpython-4.2.3
PS C:\Users\raysm\vscode\graphics_braille_main>

Small note about py, the python launcher.
As I had several python installations and I needed to run an "older" one,
I wanted py to execute my particular one.
Added py.ini file to the launcher directory.
In my case: C:\Users\Owner\AppData\Local\Programs\Python\Launcher
My py.ini:
[defaults]
python=3.13

                   