scikits.statsmodels不能用pip安装python3.5
scikits.statsmodels can not be installed with pip python 3.5
官方文档https://scikits.appspot.com/statsmodels说"scikits.statsmodels has been ported and tested for Python 3.2."但我得到:
$ 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/
我该如何解决这个问题?
正如 scikits.statsmodels 的 PyPI page 所说:
The name of scikits.statsmodels has been changed to statsmodels, the new version is at http://pypi.python.org/pypi/statsmodels
所以试试
pip install statsmodels
FWIW 我在 3.6 中经常使用 statsmodels,所以我很乐观它会起作用。 :-)
官方文档https://scikits.appspot.com/statsmodels说"scikits.statsmodels has been ported and tested for Python 3.2."但我得到:
$ 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/
我该如何解决这个问题?
正如 scikits.statsmodels 的 PyPI page 所说:
The name of scikits.statsmodels has been changed to statsmodels, the new version is at http://pypi.python.org/pypi/statsmodels
所以试试
pip install statsmodels
FWIW 我在 3.6 中经常使用 statsmodels,所以我很乐观它会起作用。 :-)