import xarray as xr
your_grib_path = "F:\Develop\Codes\Python\OpenStreetMapDataExtraction-master\data.grib2"
data = xr.open_dataset(your_grib_path, engine="cfgrib")
print(data)
I opened the.grib2 file with the xarray library on windows and python3. I have installed the eccodes library, but when reading the data, an error is still displayed: RuntimeError: Cannot find the ecCodes library.
Can anyone give me some advice?