3

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.

5

1 Answer 1

1

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

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.