2012-04-05 78 views
0

我試圖在運行Windows XP的計算機上使用Python 2.5安裝Pandas。在Windows上使用Python 2.5安裝Pandas

安裝似乎完成OK,但是當我嘗試

from pandas import * 

我得到以下錯誤:

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__' 

至於我可以告訴大家,我有所有的依賴安裝正確,問題與functools.py有關,它是Python標準庫(?)的一部分。

有沒有人有任何建議,請?熊貓應該使用Python 2.5,所以我認爲這是我的Python配置的問題。

回答

0

這是ArcGIS或Python.org附帶的Python發行版嗎?正如郵件列表中所討論的,這似乎不是Python 2.5本身的問題,但可能是您的環境

+0

謝謝Wes。對於其他人,可以在[這裏]找到更多的細節(http://groups.google.com/group/pystatsmodels/browse_thread/thread/8c956f3a94ec3a06/c9fc539766e02235?pli=1)。我昨天晚上在筆記本電腦上試着用2.5安裝Pandas,它運行良好,所以這顯然是這臺機器的問題。我會繼續嘗試...... – JamesS 2012-04-06 08:35:19