太难安装了,用0.11.1版本吧,配numpy低版本
pip install statsmodel==0.11.1
pip install numpy==1.14.0
版本支持介绍
最新版依赖:
Dependencies¶
The current minimum dependencies are:
Python >= 3.6
NumPy >= 1.15
SciPy >= 1.2
Pandas >= 0.23
Patsy >= 0.5.1
Cython is required to build from a git checkout but not to run or install from PyPI:
Cython >= 0.29 is required to build the code from github but not from a source distribution.
Given the long release cycle, statsmodels follows a loose time-based policy for dependencies: minimal dependencies are lagged about one and a half to two years. Our next planned update of minimum versions is expected in the first half of 2020.
Optional Dependencies¶
cvxopt is required for regularized fitting of some models.
Matplotlib >= 2.2 is needed for plotting functions and running many of the examples.
If installed, X-12-ARIMA or X-13ARIMA-SEATS can be used for time-series analysis.
pytest is required to run the test suite.
IPython >= 5.0 is required to build the docs locally or to use the notebooks.
joblib >= 0.9 can be used to accelerate distributed estimation for certain models.
jupyter is needed to run the notebooks.
运行
pip install numpy==1.18.0
pip install Scipy==1.5.0
pip install pandas==0.24.0
pip install patsy==0.5.1
pip install statsmodels==0.12.0