安装统计模型时出错 - " numpy.dtype的大小错误"

时间:2014-08-24 03:06:47

标签: python numpy pandas pip statsmodels

我正在尝试导入statsmodels python包。我已经安装了最新的numpy和pandas包,但使用下面的代码会导致以下错误。

我正在使用Mavericks(全新机器)运行mac,其他软件包都是通过pip安装来安装的,

$ pip install statsmodels --upgrade

错误:

Downloading/unpacking statsmodels
  Downloading statsmodels-0.5.0.tar.gz (5.5MB): 5.5MB downloaded
  Running setup.py (path:/private/var/folders/28/hc3l9sqs3z3_73h8h73wnd8w0000gn/T/pip_build_me/statsmodels/setup.py) egg_info for package statsmodels
    numpy.dtype has the wrong size, try recompiling
    Traceback (most recent call last):
      File "<string>", line 17, in <module>
      File "/private/var/folders/28/hc3l9sqs3z3_73h8h73wnd8w0000gn/T/pip_build_me/statsmodels/setup.py", line 463, in <module>
        check_dependency_versions(min_versions)
      File "/private/var/folders/28/hc3l9sqs3z3_73h8h73wnd8w0000gn/T/pip_build_me/statsmodels/setup.py", line 116, in check_dependency_versions
        from pandas.version import version as pversion
      File "/Library/Python/2.7/site-packages/pandas/__init__.py", line 6, in <module>
        from . import hashtable, tslib, lib
      File "numpy.pxd", line 157, in init pandas.hashtable (pandas/hashtable.c:22315)
    ValueError: numpy.dtype has the wrong size, try recompiling
    Complete output from command python setup.py egg_info:
    numpy.dtype has the wrong size, try recompiling

Traceback (most recent call last):

  File "<string>", line 17, in <module>

  File "/private/var/folders/28/hc3l9sqs3z3_73h8h73wnd8w0000gn/T/pip_build_me/statsmodels/setup.py", line 463, in <module>

    check_dependency_versions(min_versions)

  File "/private/var/folders/28/hc3l9sqs3z3_73h8h73wnd8w0000gn/T/pip_build_me/statsmodels/setup.py", line 116, in check_dependency_versions

    from pandas.version import version as pversion

  File "/Library/Python/2.7/site-packages/pandas/__init__.py", line 6, in <module>

    from . import hashtable, tslib, lib

  File "numpy.pxd", line 157, in init pandas.hashtable (pandas/hashtable.c:22315)

**ValueError: numpy.dtype has the wrong size, try recompiling**

----------------------------------------
Cleaning up...
Command python setup.py egg_info failed with error code 1 in /private/var/folders/28/hc3l9sqs3z3_73h8h73wnd8w0000gn/T/pip_build_me/statsmodels

在/Users/me/Library/Logs/pip.log中存储失败的调试日志

0 个答案:

没有答案