Python:为什么在尝试导入地理面板时出现错误?

时间:2019-04-09 07:59:11

标签: python geopandas

我正在尝试提高geopandas,但出现以下错误

import geopandas as gpd

---------------------------------------------------------------------------
ImportError                               Traceback (most recent call last)
<ipython-input-20-05b2e8edd391> in <module>()
     21 import seaborn as sns
     22 #from osgeo import gdal
---> 23 import geopandas as gpd
     24 #import fiona
     25 from scipy.stats import skew

/anaconda3/lib/python3.6/site-packages/geopandas/__init__.py in <module>()
      1 from geopandas.geoseries import GeoSeries
      2 from geopandas.geodataframe import GeoDataFrame
----> 3 from geopandas.geodataframe import points_from_xy
      4 
      5 from geopandas.io.file import read_file

ImportError: cannot import name 'points_from_xy'

1 个答案:

答案 0 :(得分:1)

该功能is rather new,目前仅在Github存储库中可用。最新版本0.4.1 does not include it