如何修复 CMake 错误:wxPython/Phoenix does not appear to be installed on the system
问题
尝试使用 CMake 编译软件时,你看到如下错误消息:
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)解决方案
CMake 基本上检查你是否安装了 Python 包 wx。
要安装它,使用
install_wxpython.sh
pip install --user --break-system-packages wxpython如果不起作用,检查你是否安装了多个 Python 版本
If this post helped you, please consider buying me a coffee or donating via PayPal to support research & publishing of new posts on TechOverflow