I have installed the lib pmdarima with the instruction from the GitHub page . But when I imported the auto_arima function, it gives the errors below:
[1] from pmdarima.arima import auto_arima
Traceback (most recent call last):
File "<ipython-input-12-6858fadc5169>", line 1, in <module>
from pmdarima.arima import auto_arima
File "C:\Users\WIN\Anaconda3\lib\site-packages\pmdarima\__init__.py", line 29, in <module>
from .arima import auto_arima, ARIMA
File "C:\Users\WIN\Anaconda3\lib\site-packages\pmdarima\arima\__init__.py", line 5, in <module>
from .approx import *
File "C:\Users\WIN\Anaconda3\lib\site-packages\pmdarima\arima\approx.py", line 19, in <module>
from pmdarima.arima._arima import C_Approx
File "__init__.pxd", line 918, in init pmdarima.arima._arima
ValueError: numpy.ufunc size changed, may indicate binary incompatibility. Expected 216 from C header, got 192 from PyObject
How should I resolve the problem?
Reinstall numpy pip install numpy
And install pip install pmdarima
. It will work!
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.