CentOS9上安装wxPython:
准备工作如下:
pip install setuptools wheel
yum install -y python3-devel
yum install -y epel-release
yum groupinstall "development tools" -y
yum install kernel-headers kernel-devel -y
yum install -y dpkg-devel
yum install -y libjpeg-turbo-devel
yum install -y libtiff-devel
yum install -y SDL2 SDL2-devel
yum install -y gstreamer1-plugins-base-devel
yum install -y gstreamer1 gstreamer1-devel
yum install -y gtk2 gtk2-devel
yum install -y gtk3 gtk3-devel
yum install -y libSM libSM-devel
yum install -y tk tk-devel
yum install -y wxGTK wxBase wxGTK-gl wxGTK-devel wxGTK3-devel
yum install -y freeglut freeglut-devel
yum install -y libnotify-devel
# yum install -y libconfig-devel
# yum install -y libestr-devel
# yum install -y webkitgtk3-devel webkitgtk3 webkitgtk4-devel webkitgtk4
安装wxPython
pip install wxPython
# 指定源安装
pip install wxPython -i https://pypi.tuna.tsinghua.edu.cn/simple