Como solucionar error CMake: wxPython/Phoenix does not appear to be installed on the system

Problema

Al intentar compilar software usando CMake, ves un mensaje de error como:

cmake_wxpython_error.txt
Traceback (most recent call last):
  File "<string>", line 1, in <module>
ModuleNotFoundError: No module named 'wx'
CMake Error at cmake/FindwxPython.cmake:56 (message):
  wxPython/Phoenix does not appear to be installed on the system
Call Stack (most recent call first):
  CMakeLists.txt:1004 (find_package)

Solucion

CMake basicamente verifica si tienes el paquete Python wx instalado.

Para instalarlo, usa

install_wxpython.sh
pip install --user --break-system-packages wxpython

Si eso no funciona, verifica si tienes multiples versiones de Python instaladas


Echa un vistazo a artículos similares por categoría: CMake, Python