package incompatibility between graphcast, xarray, pandas and numpy

Author: imangohari1Created Dec 5, 2025Updated Dec 5, 2025

Hi there, I am trying to install and run the demo code here: https://github.com/google-deepmind/graphcast/blob/main/graphcast_demo.ipynb and the simple import here: from graphcast import casting leads to

---> 13 from pandas._libs.interval import Interval
     14 from pandas._libs.tslibs import (
     15     NaT,
     16     NaTType,
   (...)
     21     iNaT,
     22 )

File ~/miniconda3/lib/python3.10/site-packages/pandas/_libs/interval.pyx:1, in init pandas._libs.interval()

ValueError: numpy.dtype size changed, may indicate binary incompatibility. Expected 96 from C header, got 88 from PyObject

I have tried different versions of pandas, numpy and no luck. any ideas? thanks.

Source: google-deepmind/weathernext