Python:为什么我在尝试导入geoplands时会出错?

2024-05-28 23:15:27 发布

您现在位置:Python中文网/ 问答频道 /正文

我试图导入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'

Tags: infromimportmostas错误pointsfile

热门问题