macOS install pygrib

  1. Download and install openjpeg, cmake

  2. Download and install eccodes

cmake ../ -DENABLE_FORTRAN=OFF

  1. pip3 install pygrib
    otool -L /Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/pygrib.cpython-38-darwin.so

install_name_tool -change @rpath/libeccodes.dylib /usr/local/lib/libeccodes.dylib /Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/pygrib.cpython-38-darwin.so

你可能感兴趣的:(macOS install pygrib)