Scikits.statsmodels cannot be installed with python 3.5 pip

The official documentation https://scikits.appspot.com/statsmodels states that "scikits.statsmodels has been ported and tested for Python 3.2." but I get:

$ pip install scikits.statsmodels
Collecting scikits.statsmodels
   Using cached scikits.statsmodels-0.3.1.tar.gz
   Complete output from command python setup.py egg_info:
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmp/pip-build-dbu7u2oo/scikits.statsmodels/setup.py", line 96
        print "debug import success GIT_REVISION", GIT_REVISION
                                            ^
    SyntaxError: Missing parentheses in call to 'print'

    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-dbu7u2oo/scikits.statsmodels/

How can i fix this?

+4
source share
1 answer

As the PyPI page for scikits.statsmodels says:

The name scikits.statsmodels has been changed to statsmodels, the new version is at http://pypi.python.org/pypi/statsmodels

So try

pip install statsmodels

FWIW I regularly use statsmodels in 3.6, so I'm pretty optimistic that this will work. :-)

+2
source

Source: https://habr.com/ru/post/1674203/


All Articles