I cannot figure out how to install statsmodels on my M1 machine. After following the instructions in similar threads about scipy and numpy issues with M1, I am able to install these, but cannot install statsmodels.
Statsmodels issues were also raised here, but unresolved: https://github.com/scipy/scipy/issues/13409
python --version Python 3.8.9
pip --version pip 21.3.1
The command pip install statsmodels==0.13.1
leads to the error message:
ERROR: Could not find a version that satisfies the requirement statsmodels==0.13.1
Has anyone managed to install it?
Thank you!
Have you tried installing it from conda-forge
? This package page shows that there's a osx-arm64
version available.
You can install Miniforge (or Mambaforge, if you prefer) for Apple Silicon platforms from the conda-forge GitHub repo. Then just follow the installation instructions and create an environment to install statsmodels into.
Unfortunately, I don't have an M1 machine so I can't test if it's working.