Wie man CMake-Fehler behebt: wxPython/Phoenix does not appear to be installed on the system
English
Deutsch
Problem
Beim Versuch, Software mit CMake zu kompilieren, sehen Sie eine Fehlermeldung wie:
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)Lösung
CMake überprüft im Wesentlichen, ob Sie das Python-Paket wx installiert haben.
Um es zu installieren, verwenden Sie
install_wxpython.sh
pip install --user --break-system-packages wxpythonWenn das nicht funktioniert, überprüfen Sie, ob Sie mehrere Python-Versionen installiert haben
If this post helped you, please consider buying me a coffee or donating via PayPal to support research & publishing of new posts on TechOverflow