Failed to install pmdarima in Python 3.13
Describe the bug
I'm not able to install the package using Python v3.13 Building wheels for collected packages: pmdarima Building wheel for pmdarima (pyproject.toml) ... error error: subprocess-exited-with-error
× Building wheel for pmdarima (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [40 lines of output]
Partial import of pmdarima during the build process.
Requirements: ['joblib>=0.11', 'Cython>=0.29,!=0.29.18,!=0.29.31', 'numpy>=1.21.2', 'pandas>=0.19', 'scikit-learn>=0.22', 'scipy>=1.3.2', 'statsmodels>=0.13.2', 'urllib3', 'setuptools>=38.6.0,!=50.0.0', 'packaging>=17.1 # Bundled with setuptools, but want to be explicit']
Adding extra setuptools args
Setting up with setuptools
Traceback (most recent call last):
File "/home/yash/Documents/venvs/seasonality313/lib/python3.13/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in
note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for pmdarima Failed to build pmdarima ERROR: Could not build wheels for pmdarima, which is required to install pyproject.toml-based projects
To Reproduce
- Set Python v3.13
- run pip install pmdarima
Versions
Linux-5.15.0-107-generic-x86_64-with-glibc2.31
Python 3.13.0 (main, Oct 8 2024, 08:51:27) [GCC 9.4.0]
not able to install pmdarima
Expected Behavior
Get package installed
Actual Behavior
Failling installation process.
Additional Context
No response
Thanks for the report. This is currently blocked by #577 (Numpy 2+ support), since Numpy does not have wheels for Python 3.13 on the 1.X branch. We're working on that, and then we can address this
Hello @aaronreidsmith, I am also having an issue related to pmdarima installation (see below). Is seems to be the same as the one reported above by @yash-2910. Is there any workaround or we still have to wait?
`error: subprocess-exited-with-error
Building wheel for pmdarima (pyproject.toml) did not run successfully. exit code: 1
[41 lines of output] Partial import of pmdarima during the build process.
Requirements: ['joblib>=0.11\nCython>=0.29,!=0.29.18,!=0.29.31\nnumpy>=1.21.2\npandas>=0.19\nscikit-learn>=0.22\nscipy>=1.3.2\nstatsmodels>=0.13.2\nurllib3\nsetuptools>=38.6.0,!=50.0.0\npackaging>=17.1 # Bundled with setuptools, but want to be explicit\n']
Adding extra setuptools args
Setting up with setuptools
Traceback (most recent call last):
File "C:\Users\Kátia Bettoni\AppData\Local\Programs\Python\Python313\Lib\site-packages\pip_vendor\pyproject_hooks_in_process_in_process.py", line 353, in
note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for pmdarima ERROR: ERROR: Failed to build installable wheels for some pyproject.toml based projects (pmdarima)`
Hi there,
we are currently aiming to modernize PyCaret, and are also blocked by this.
- https://github.com/pycaret/pycaret/issues/4121
With kind regards, Andreas.
We also are getting the numpy error also with Python 3.13. We are patient. Thanks!!
Up till today, this error still exists. I've also tried installing it on Python v3.11 still not working. Please is there a way around this issue now?
@Emzzyliano yes this exist
Up till today, this error still exists. I've also tried installing it on Python v3.11 still not working. Please is there a way around this issue now? With Python 3.12.7 works
I can confirm that installation works on 3.12.x
# ModuleNotFoundError: No module named 'numpy'
uv init --python 3.13 && uv add numpy pmdarima
# Using CPython 3.13.2
# works
uv init --python 3.12 && uv add numpy pmdarima
# Using CPython 3.12.9
# advised
uv init --python 3.12 && uv add "numpy<2" pmdarima
# Using CPython 3.12.9
# [[package]]
# name = "numpy"
# version = "1.26.4"
Well, just to mention that the problem persists. I've tried with 3.12.10
ValueError Traceback (most recent call last) Cell In[2], line 3 1 import pandas as pd 2 # import matplotlib.pyplot as plt ----> 3 import pmdarima as pm
File d:\Integrated AI-2\DATA480 - Predictive Analysis and Modeling Advance\Notebooks\arima_env\Lib\site-packages\pmdarima_init_.py:52
49 from . import __check_build
51 # Stuff we want at top-level
---> 52 from .arima import auto_arima, ARIMA, AutoARIMA, StepwiseContext, decompose
53 from .utils import acf, autocorr_plot, c, pacf, plot_acf, plot_pacf,
54 tsdisplay
55 from .utils._show_versions import show_versions
File d:\Integrated AI-2\DATA480 - Predictive Analysis and Modeling Advance\Notebooks\arima_env\Lib\site-packages\pmdarima\arima_init_.py:5 1 # -- coding: utf-8 -- 2 # 3 # Author: Taylor Smith [email protected] ----> 5 from .approx import * 6 from .arima import * 7 from .auto import *
File d:\Integrated AI-2\DATA480 - Predictive Analysis and Modeling Advance\Notebooks\arima_env\Lib\site-packages\pmdarima\arima\approx.py:9 1 # -- coding: utf-8 -- 2 # 3 # Author: Taylor Smith [email protected] 4 # 5 # R approx function 7 import numpy as np ----> 9 from ..utils.array import c, check_endog 10 from ..utils import get_callable 11 from ..compat.numpy import DTYPE
File d:\Integrated AI-2\DATA480 - Predictive Analysis and Modeling Advance\Notebooks\arima_env\Lib\site-packages\pmdarima\utils_init_.py:5 1 # -- coding: utf-8 -- 2 # 3 # Author: Taylor Smith [email protected] ----> 5 from .array import * 6 from .metaestimators import * 7 from .visualization import *
File d:\Integrated AI-2\DATA480 - Predictive Analysis and Modeling Advance\Notebooks\arima_env\Lib\site-packages\pmdarima\utils\array.py:13 10 import pandas as pd 12 from ..compat import DTYPE ---> 13 from ._array import C_intgrt_vec 15 all = [ 16 'as_series', 17 'c', (...) 22 'is_iterable' 23 ] 26 def as_series(x, **kwargs):
File d:\Integrated AI-2\DATA480 - Predictive Analysis and Modeling Advance\Notebooks\arima_env\Lib\site-packages\pmdarima\utils_array.pyx:1, in init pmdarima.utils._array()
ValueError: numpy.dtype size changed, may indicate binary incompatibility. Expected 96 from C header, got 88 from PyObject
Should be resolved in v2.1.0