今天搭建Python GIS平台。遇到要安装wxPython的问题。记录如下:
错误一:
checking for GTK+ - version >= 3.0.0... no
安装libgtk-3-dev
sudo apt-get install libgtk-3-dev
错误二:
configure: error: GStreamer not available
安装libgstreamer-plugins-base1.0-dev
sudo apt install libgstreamer-plugins-base1.0-dev
错误三:
configure: error: OpenGL libraries not available
安装libgl1-mesa-dev libglu1-mesa-dev
sudo apt install libgl1-mesa-dev libglu1-mesa-dev
或
sudo apt-get install freeglut3-dev
还有
sudo apt-get install libwebkitgtk-3.0-dev
最后
pip3 install wxPython
附上全部官方依赖:
You will need the following packages (please consult your distributions package list for the appropriate names) and their dependencies:
python-dev (for your version of python)
gtk (preferably version 3, but depends on your needs)
gstreamer
glut
webkitgtk (matching your gtk version)