简体   繁体   English

在 Windows 上安装 Pandas 和 Python 2.5

[英]Installing Pandas with Python 2.5 on Windows

I'm trying to get Pandas installed with Python 2.5 on a machine running Windows XP.我正在尝试在运行 Windows XP 的机器上安装 Pandas 和 Python 2.5。

The installation seems to finish OK, but when I try安装似乎可以完成,但是当我尝试

from pandas import *

I get the following error:我收到以下错误:

Traceback (most recent call last):
  File "<interactive input>", line 1, in <module>
  File "c:\python25\lib\site-packages\pandas-0.7.2-py2.5-win32.egg\pandas\__init__.py", line 24, in <module>
    from pandas.stats.api import *
  File "c:\python25\lib\site-packages\pandas-0.7.2-py2.5-win32.egg\pandas\stats\api.py", line 7, in <module>
    from pandas.stats.moments import *
  File "c:\python25\lib\site-packages\pandas-0.7.2-py2.5-win32.egg\pandas\stats\moments.py", line 388, in <module>
    rolling_max = _rolling_func(_tseries.roll_max, 'Moving maximum')
  File "c:\python25\lib\site-packages\pandas-0.7.2-py2.5-win32.egg\pandas\stats\moments.py", line 379, in _rolling_func
    def f(arg, window, min_periods=None, time_rule=None):
  File "C:\Python25\Lib\functools.py", line 35, in update_wrapper
    getattr(wrapper, attr).update(getattr(wrapped, attr))
AttributeError: 'builtin_function_or_method' object has no attribute '__dict__'

As far as I can tell, I've got all of the dependencies installed correctly, and the problem is something to do with functools.py , which is part of the Python Standard Library(?).据我所知,我已经正确安装了所有依赖项,问题与functools.py有关,它是 Python 标准库(?)的一部分。

Does anyone have any suggestions, please?请问有人有什么建议吗? Pandas is supposed to work with Python 2.5, so I assume it's a problem with my Python configuration. Pandas 应该与 Python 2.5 一起使用,所以我认为这是我的 Python 配置的问题。

Is this the Python distro that came with ArcGIS or Python.org?这是 ArcGIS 附带的 Python 发行版还是 Python.org? As discussed on the mailing list this does not seem to be an issue with Python 2.5 per se but potentially your environment正如邮件列表中所讨论的,这似乎不是 Python 2.5 本身的问题,但可能是您的环境

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM