Coding With Fun
Home Docker Django Node.js Articles Python pip guide FAQ Policy
 

How to install statsmodels via python pip




statsmodels - Statistical computations and models for Python, it belongs to Classifiers:

- Intended Audience :: End Users/Desktop
- Programming Language :: C
- Programming Language :: Cython
- Topic :: Office/Business
- Topic :: Office/Business :: Financial

When you know about this project and you want to new install statsmodels to support your project or you get trouble as ModuleNotFoundError: No module named "statsmodels" or ImportError: cannot import name "statsmodels" in your project, let follow this tutorial to install statsmodels



Installation:

Step 1: First, ensure you installed pip in your os, to check pip has been installed on your computer

In Windows (CMD):

py -m pip --version

In Unix/macOS:

python3 -m pip --version

Ensure pip, setuptools, and wheel are up to date:

In Windows (CMD):

py -m pip install --upgrade pip setuptools wheel

In Unix/macOS:

python3 -m pip install --upgrade pip setuptools wheel


Optional - If you want to install in virtual environment:

In Windows (CMD):

- Install virtualenv - if you installed it, please ignore

py -m pip install --user virtualenv

- Create a virtual environment

py -m venv test_statsmodels_env

- Active the virtual environment

test_statsmodels_env\Scripts\active

In Unix/macOS:

- Install virtualenv - if you installed it, please ignore

pip3 install virtualenv

- Create a virtual environment

python3 -m venv test_statsmodels_env

- Active the virtual environment

source test_statsmodels_env/bin/active


Step 2: OK, now, let flow below content to start the installation statsmodels

To install statsmodels on Windows(CMD):

py -m pip install statsmodels

To install statsmodels on Unix/macOs:

pip install statsmodels


Step 3: If you want to install a specific statsmodels version, add ==<statsmodels version> to the end command line

Example:

pip install statsmodels==0.4.0rc2                                                        pre-release


Please see the version list below table:

VersionReleased dateCommand
statsmodels 0.13.22022-02-08T18:11:09Windows:

py -m pip install statsmodels==0.13.2

Unix/macOs:

pip install statsmodels==0.13.2

statsmodels 0.13.12021-11-12T23:27:25Windows:

py -m pip install statsmodels==0.13.1

Unix/macOs:

pip install statsmodels==0.13.1

statsmodels 0.13.02021-10-01T23:25:24Windows:

py -m pip install statsmodels==0.13.0

Unix/macOs:

pip install statsmodels==0.13.0

statsmodels 0.12.22021-02-02T11:08:49Windows:

py -m pip install statsmodels==0.12.2

Unix/macOs:

pip install statsmodels==0.12.2

statsmodels 0.12.12020-10-29T16:36:43Windows:

py -m pip install statsmodels==0.12.1

Unix/macOs:

pip install statsmodels==0.12.1

statsmodels 0.12.02020-08-27T16:58:42Windows:

py -m pip install statsmodels==0.12.0

Unix/macOs:

pip install statsmodels==0.12.0

statsmodels 0.11.12020-02-21T13:14:43Windows:

py -m pip install statsmodels==0.11.1

Unix/macOs:

pip install statsmodels==0.11.1

statsmodels 0.11.02020-01-22T12:38:55Windows:

py -m pip install statsmodels==0.11.0

Unix/macOs:

pip install statsmodels==0.11.0

statsmodels 0.10.22019-11-23T08:25:35Windows:

py -m pip install statsmodels==0.10.2

Unix/macOs:

pip install statsmodels==0.10.2

statsmodels 0.10.12019-07-19T11:35:35Windows:

py -m pip install statsmodels==0.10.1

Unix/macOs:

pip install statsmodels==0.10.1

statsmodels 0.10.02019-06-24T15:46:34Windows:

py -m pip install statsmodels==0.10.0

Unix/macOs:

pip install statsmodels==0.10.0

statsmodels 0.9.02018-05-15T02:05:33Windows:

py -m pip install statsmodels==0.9.0

Unix/macOs:

pip install statsmodels==0.9.0

statsmodels 0.8.02017-02-08T16:58:34Windows:

py -m pip install statsmodels==0.8.0

Unix/macOs:

pip install statsmodels==0.8.0

statsmodels 0.6.12014-12-02T17:19:52Windows:

py -m pip install statsmodels==0.6.1

Unix/macOs:

pip install statsmodels==0.6.1

statsmodels 0.6.02014-11-05T16:35:39Windows:

py -m pip install statsmodels==0.6.0

Unix/macOs:

pip install statsmodels==0.6.0

statsmodels 0.5.02013-08-14T23:46:05Windows:

py -m pip install statsmodels==0.5.0

Unix/macOs:

pip install statsmodels==0.5.0

statsmodels 0.4.32012-07-02T12:53:49Windows:

py -m pip install statsmodels==0.4.3

Unix/macOs:

pip install statsmodels==0.4.3

statsmodels 0.4.12012-06-19T04:34:01Windows:

py -m pip install statsmodels==0.4.1

Unix/macOs:

pip install statsmodels==0.4.1

statsmodels 0.4.02012-04-26T23:53:32Windows:

py -m pip install statsmodels==0.4.0

Unix/macOs:

pip install statsmodels==0.4.0


Step 4: Otherwise, you can install statsmodels from local archives:

Download the distribution file from statsmodels-0.13.2.tar.gz or the specific statsmodels version in the below list of distribution

After that, install by command:

On Windows(CMD):

py -m pip install <path_to_statsmodels_downloaded_file>

On Unix/macOs:

pip install <path_to_statsmodels_downloaded_file>


List distribution:


Project link:

- Homepage
- Bug Tracker
- Documentation
- Source Code