[英]Python: why do I get an error when I try to import geopands?
I am trying to impor geopandas
but I get the following error 我正在尝试
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'
That function is rather new and only available in the Github repository right now. 该功能是相当新的功能, 目前仅在Github存储库中可用。 The recent release 0.4.1 does not include it .
最新版本0.4.1 不包含它 。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.