Unable to install Statsmodels…python

别等时光非礼了梦想. 提交于 2019-11-29 14:53:22
be_good_do_good

install numpy

pip install numpy

If you face installation issues for numpy, get the pre-built windows installers from http://www.lfd.uci.edu/~gohlke/pythonlibs/ for your python version (python version is different from windows version).

numpy 32-bit: numpy-1.11.1+mkl-cp27-cp27m-win32.whl

numpy 64-bit: numpy-1.11.1+mkl-cp27-cp27m-win_amd64.whl

Later you require VC++ 9.0, then please get it from below link Microsoft Visual C++ 9.0 is required. Get it from http://aka.ms/vcpython27

Then install

Get the pre-built windows installers from http://www.lfd.uci.edu/~gohlke/pythonlibs/ for your python version (python version is different from windows version).

Scipy 32-bit: scipy-0.18.0-cp27-cp27m-win32.whl

Scipy 64-bit: scipy-0.18.0-cp27-cp27m-win_amd64.whl

If it fails saying whl is not supported wheel on this platform , then upgrade pip using python -m pip install --upgrade pip and try installing scipy

Now try

pip install scipy

Then try

pip install statsmodels

It should work like a charm

kikocorreoso

An easier way to install python libraries on Windows with C/C++/Fortran/... dependencies is to use conda. conda is available in MiniConda or Anaconda continuum products.

Another easy way to install scientific python libraries on windows is to use Christoph Gohlke's windows web page.

If you have no much idea about all of them and how to manage dependencies on windows I recommend you uninstalling your Python and installing anaconda. Anaconda already has Numpy, Scipy, Matplotlib,..., and statsmodels pre-installed (see the list of the packages included in the anaconda distribution).

I have tried to write this on cmd.exe and it worked.

pip install statsmodels==0.6.0

install statsmodels for python 2.7 in windows

Muhammad Hamza

Make sure you are using the latest version of pip To check which version you are using try:

pip --version

To install statsmodels you can either go to cmd.exe or if you are using python pycharm use "Terminal Window" and type:

pip install statsmodels==0.9.0
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!