python-3.x - scikits.statsmodels 不能用 pip python 3.5 安装

标签 python-3.x pip scikits

官方文档https://scikits.appspot.com/statsmodels说“scikits.statsmodels 已经针对 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/

我怎样才能解决这个问题?

最佳答案

PyPI page对于 scikits.statsmodels 说:

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,所以我很乐观它会起作用。 :-)

关于python-3.x - scikits.statsmodels 不能用 pip python 3.5 安装,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43255148/

相关文章:

python - 无法使py2exe工作

python-3.x - pytest fixture 产量返回生成器而不是对象

python - 将 pip 与 virtualenv 一起使用时如何避免 "Permission denied"

python - 尽管满足了全局要求,但仍使用 pip 在本地安装软件包

python - 即使似乎已安装,也无法导入 scikits-learn

python - 使用 scikit learn .9 或更低版本的随机森林

python - 如何在PCA中白化矩阵

python - 使用 Python 3 在 X 服务器(Raspberry Pi)上显示全屏 jpeg

python - 如何在存在生成器/协程的情况下检查程序状态?

python - pip install regex 无法在 Anaconda python3.6.9 virtualenv 上构建