简体   繁体   中英

Could not find a version that satisfies the requirement statsmodels.api [ Python ]

When I try pip install statsmodels.api command, I had these errors

ERROR: Could not find a version that satisfies the requirement statsmodels.api (from versions: none) ERROR: No matching distribution found for statsmodels.api

Python version is Python 3.8.5

C:\\Windows\\system32>pip install statsmodels

Requirement already satisfied: statsmodels in c:\\python38\\lib\\site-packages (0.12.0) Requirement already satisfied: numpy>=1.15 in c:\\python38\\lib\\site-packages (from statsmodels) (1.19.1) Requirement already satisfied: patsy>=0.5 in c:\\python38\\lib\\site-packages (from statsmodels) (0.5.1) Requirement already satisfied: pandas>=0.21 in c:\\python38\\lib\\site-packages (from statsmodels) (1.1.2) Requirement already satisfied: scipy>=1.1 in c:\\python38\\lib\\site-packages (from statsmodels) (1.5.2) Requirement already satisfied: six in c:\\python38\\lib\\site-packages (from patsy>=0.5->statsmodels) (1.15.0) Requirement already satisfied: python-dateutil>=2.7.3 in c:\\python38\\lib\\site-packages (from pandas>=0.21->statsmodels) (2.8.1) Requirement already satisfied: pytz>=2017.2 in c:\\python38\\lib\\site-packages (from pandas>=0.21->statsmodels) (2020.1)

I think you want this:

pip install statsmodels

You're trying to install one submodule of a Python module/package. You have to install the whole package.

If you've already done this, then you already have the statsmodels.api module and don't have to install anything else.

I do not know how you have configured your environments (if you have many). but ensure that you install your package in the correct environment. However, please try the following for me:

 conda install -c anaconda statsmodels

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM