This guide describes how to install ecCodes with Python bindings in a conda environment (Note: Python here means Python 3; Python 2 is deprecated).
Step-by-step guide
If you do not already have a conda environment installed on your system, the simplest is to download a miniconda installer for your platform
To install ecCodes, you should download the miniconda installer for a 64-bit operating system with Python 3
Once miniconda is installed, activate it and then install ecCodes using conda:
% conda install -c conda-forge eccodes
This will install the ecCodes library and tools for you.
The final step is to install the ecCodes Python bindings using pip. Still in your conda environment:
% pip3 install eccodes
Your ecCodes installation is now ready to use !