gpt4 book ai didi

python - statsmodels 安装失败,出现 ValueError

转载 作者:太空宇宙 更新时间:2023-11-04 09:38:15 29 4
gpt4 key购买 nike

我正在尝试使用“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

最佳答案

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

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

关于python - statsmodels 安装失败,出现 ValueError,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24269625/

29 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com