2017-04-06 84 views
4

官方文档https://scikits.appspot.com/statsmodels表示“scikits.statsmodels已经被移植到Python 3.2中进行测试”。但我得到:scikits.statsmodels不能与pip python 3.5一起安装

$ 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/ 

我该如何解决这个问题?

+0

我只是在这里复制它:https://github.com/statsmodels/statsmodels/issues/3598 – user3313834

回答

2

由于PyPI page为scikits.statsmodels说:

scikits.statsmodels的名称已更改为statsmodels,新版本在http://pypi.python.org/pypi/statsmodels

所以尽量

pip install statsmodels 

FWIW我经常在3.6中使用statsmodels,所以我非常乐观,它会工作。 :-)