Rogue258
Rogue258

Reputation: 135

Cannot import statsmodel module because it doesn't show it's installed

I tried importing the statsmodel in jupyter notebook. It showed the error that the module was not found. I searched on this site and on the net in general and tried a few options but to no avail. I tried installing pip and conda in Anaconda prompt and Jupyter Notebook. I am not a regular developer so forgive me if I missed something obvious. I have attached the images of the errors for better understanding. My Python is 3.7.4 version.

Image 1 - Anaconda Prompt pip and conda install attempts Image 2 - Statsmodel showing up in pip list command Image 3 - Conda Jupyter Notebook Install Error Image 4 - Pip Jupyter Notebook Install Error Image 5 - Statsmodel folder in Anaconda3>Lib>Site-Packages

Anaconda Prompt pip and conda install attempts

Statsmodel showing up in pip list command

Conda Jupyter Notebook Install Error

Pip Jupyter Notebook Install Error

Statsmodel folder in Anaconda3>Lib>Site-Packages

Upvotes: 1

Views: 1077

Answers (1)

Richard Nemeth
Richard Nemeth

Reputation: 1874

Try pip install statsmodels instead of pip install statsmodel.

The reason you are getting these errors is because you are trying to install a package which does not exist.

Also in order to test whether the installation went successfully: import statsmodels

Upvotes: 1

Related Questions