2017-05-06 17 views
1

를 가져올 실패IPython 다음과 같이 성공적으로 CONDA - 대장간에서 <a href="http://geopandas.org/install.html#installing-geopandas" rel="nofollow noreferrer">Geopandas</a> CONDA 패키지를 설치 한 후 Geopandas

import geopandas as gpd 

모든 종속성 (numpy, pandas, shapely, fiona, six, pyproj)이 설치되어 있고 최신 상태 임에도 불구하고 다음 오류가 계속 발생합니다.

--------------------------------------------------------------------- 
------ 
ImportError        Traceback (most recent call 
last) 
<ipython-input-1-13760ce748ee> in <module>() 
     4 import matplotlib.mlab as mlab 
     5 
----> 6 import geopandas as gpd 
     7 import seaborn as sns 
     8 from sklearn import preprocessing 

    //anaconda/lib/python2.7/site-packages/geopandas/__init__.py in <module>() 
----> 1 from geopandas.geoseries import GeoSeries 
     2 from geopandas.geodataframe import GeoDataFrame 
     3 
     4 from geopandas.io.file import read_file 
     5 from geopandas.io.sql import read_postgis 

//anaconda/lib/python2.7/site-packages/geopandas/geoseries.py in <module>() 
     6 from pandas import Series, DataFrame 
     7 from pandas.core.indexing import _NDFrameIndexer 
----> 8 from pandas.util.decorators import cache_readonly 
     9 import pyproj 
     10 from shapely.geometry import box, shape, Polygon, Point 

ImportError: No module named decorators 

무엇이 오류의 원인 일 수 있습니까?

+1

팬더를 0.20.1로 업데이트하면이 문제가 해결 될 것입니다. – Jeff

+0

0.20.1으로 업데이트 해 주셔서 감사합니다. –

+1

여전히 (0.2.1)에서이 문제가 있습니다. 번호 매기기 규칙을 잘 모르겠습니다. 0.20.1입니다. 및 0.2.1 동일한? GPD 역 추적 (가장 최근 통화 마지막)로 MPORT의 geopandas : 아직 0.2.1에서 일어나는이 –

답변

1

Jeff의 의견을 더 잘 나타내려면 판다 0.20.1에서 수정되었습니다.
일반적으로 최신 팬더 버전 (0.20.0 제외)을 설치하면이 오류가 발생하지 않습니다.

+1

, 나는 같은 오류 얻을 ". \ geopandas.py" 파일 "", 라인 1, 파일을, 라인 12, in from geopandas import GeoSeries, GeoDataFrame ImportError : 이름을 가져올 수 없습니다. GeoSeries –