我已经按照GitHub page的说明安装了lib pmdarima。但是当我导入auto_arima函数时,它给出以下错误:
[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
我应该如何解决问题?
答案 0 :(得分:-1)
重新安装numpy
pip install numpy
并安装
pip install pmdarima
。它将起作用!