Fixing Python Pandas / NumPy Binary Incompatibility Error

Python error with Pandas / numpy:

This is going to be a quick and easy post. I got following error when running pandas < 2 on python 3.10

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

Fixed by uninstalling numpy and installing version less than 2.

pip uninstall numpy
pip install "numpy<2"

Seems like an issue with the dependency resolver – resolver sees numpy is available and doesn’t check the version, moves on.