直接运行 pip3 install pyhdf 会报错,说缺少 HDF.h,解决方法如下: 1. 运行 sudo apt-get install libhdf4-alt-dev 2.运行 sudo pip3 install pyhdf