我在macOS上安装了cfgrib
,方法如下
python3.8 -m pip install cfgrib
现在如果我打开尝试导入cfgrib
import cfgrib
我明白
RuntimeError: ecCodes library not found using ['eccodes', 'libeccodes.so', 'libeccodes']
我通过homebrew安装了cfgrib
解决了这个问题。
brew install eccodes
我在macOS上安装了cfgrib
,方法如下
python3.8 -m pip install cfgrib
现在如果我打开尝试导入cfgrib
import cfgrib
我明白
RuntimeError: ecCodes library not found using ['eccodes', 'libeccodes.so', 'libeccodes']
我通过homebrew安装了cfgrib
解决了这个问题。
brew install eccodes
2条答案
按热度按时间gxwragnw1#
cfgrib
包依赖于eccodes python包来访问ECMWF ecCodes二进制库。因此安装:之后,您可以尝试:
你应该得到这样的输出:
希望这能解决你的问题。
如果没有,也许你必须安装错误消息中监听的软件包。
46scxncf2#
对我有用的是: