statsmodels安装失败,出现ValueError

时间:2014-06-17 17:09:28

标签: python linux pandas centos statsmodels

我试图使用“pip install statsmodels”安装statsmodels 但它失败了,出现以下错误

Traceback (most recent call last):
      File "<string>", line 16, in <module>
      File "/tmp/pip-build-root/statsmodels/setup.py", line 463, in <module>
        check_dependency_versions(min_versions)
      File "/tmp/pip-build-root/statsmodels/setup.py", line 116, in check_dependency_versions
        from pandas.version import version as pversion
      File "/usr/lib64/python2.6/site-packages/pandas/__init__.py", line 45, in <module>
        from pandas.io.api import *
      File "/usr/lib64/python2.6/site-packages/pandas/io/api.py", line 7, in <module>
        from pandas.io.excel import ExcelFile, ExcelWriter, read_excel
      File "/usr/lib64/python2.6/site-packages/pandas/io/excel.py", line 626, in <module>
        .format(openpyxl_compat.start_ver, openpyxl_compat.stop_ver))
    ValueError: zero length field name in format

完成错误:http://pastebin.com/SVE2yDQS

2 个答案:

答案 0 :(得分:2)

这只是Python 2.6上的一个pandas错误。很快将在下一个次要版本中修复。作为解决方法,您可以安装openpyxl。

https://github.com/pydata/pandas/issues/7284

答案 1 :(得分:0)

这个问题是pandas-0.14.0,安装旧版本的pandas,然后就可以了。