ananconda环境下eccodes和cfgrib的安装

确认镜像源使用正确:

pip install pip -U # 更新pip

#阿里镜像源

pip config set global.index-url http://mirrors.aliyun.com/pypi/simple/

#清华镜像源

pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple

安装步骤:
(1)conda install -c conda-forge eccodes
  (2)  pip install eccodes (注:这一步很关键,只有第一步的conda安装的话,是不成功的)

(3)安装cfgrib :conda install cfgrib -c conda-forge

(4)自检:python -m cfgrib selfcheck

(5)pip install ecmwflibs

posted @ 2023-05-17 17:40  A仔的黑眼圈  阅读(1123)  评论(0)    收藏  举报