Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

I am trying to import pmdarima, but it gives the error ValueError: numpy.dtype size changed, which may indicate binary incompatibility. Expected 96 from the C header, got 88 from PyObject

I uninstalled Numpy version 2.0+ and installed Numpy version 1.26.4, but it still gives me the same error.

like image 588
Eyram Avatar asked Oct 19 '25 11:10

Eyram


1 Answers

I was able to solve the pmdarima problem in google colab. use two code cells for installations

import os 

# INstalacion de la correcta version de numpy para funcionar con pmdarima
!pip install numpy==1.26.4 --quiet

# Reiniciamos la sesion de google colab 
os.kill(os.getpid(), 9)
# Instalamos pmdarima 
!pip install pmdarima --quiet 

Finally show the installed versions

# Cargamos el modulo numpy y mostramos la version instalada
import numpy as np 
print(" ===> Version de NUMPY : ", np.__version__)

# Cargamos el modulo pmdarima y mostramos la version instalada
import pmdarima as pm
print(" ===> Version de PMDARIMA : ", pm.__version__)

The installed versions would be:

===> Version de NUMPY :  1.26.4
===> Version de PMDARIMA :  2.0.4
like image 77
robintux Avatar answered Oct 22 '25 06:10

robintux



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!