上期cfgrib安装记录有读者留言,“请出一期pygrib安装,那个感觉比较复杂。”
那么我们来测试一下吧
如果你使用默认源觉得下载缓慢,可以用以下语句换成清华源
conda config --set custom_channels.auto https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/
Image Name
conda create -n pygrib2 python==3.10.12`
Image Name
conda activate pygrib2
Image Name
conda install -c conda-forge eccodes`
Image Name
pip install pygrib
python -c "import pygrib; print(pygrib.__version__)"
安装完毕,测试成功
安装没有想象的困难,大抵是python版本的兼容性提升以及库自身的努力所致
至于pynio则需要在linux环境下安装,至于相关安装记录看什么时候有动力去做吧