相信很多气象专业的小伙伴在做科研的时候大概率都会遇到一个问题:如何找到中国地图的边界数据?如何绘制合规的中国地图?如何利用地图边界做裁减?如果你正在面临或者即将面临这些问题,请阅读本文,它将会极大地提高你在地图绘制上的生产力。
地图这个坑挺折磨人的,一方面我们需要使用合规的地图数据,而寻找和验证合规数据本身就是一件耗费时间和精力的事情,另一方面,拿到数据以后,我们还需要花时间去理解所拿到的数据,以shapefile格式文件为例,它是二进制格式,是人类无法直接阅读的,你需要借助一些工具来对它进行可视化,比如QGIS或者ArcGIS,而当你需要画图的时候,还需要理解shapefile这种存储格式以及相关的模块包的调用方法,最终才能正确地拿到你想要的lat/lon数据,这一整套搞下来那叫一个酸爽。
当然,我们可以在一些论坛和博客里得到很多帮助,有很多人愿意分享自己的经验,有的小伙伴会分享自己的合规的shapefile文件,有的小伙伴会分享自己利用shapefile进行剪切(白化)、画图的代码,之前我看了很多类似的文章,比如之前我还是个菜狗的时候,气象家园博主平流层的萝卜写的基于basemap的地图裁减的文章[经验总结]Python完美白化让我收获很大,在此表示感谢。
后来我发现,虽然写分享的人很多,但是这种分享的方式有几个的问题:1. 代码与数据分离,需要额外准备数据,如果博主不提供对应的数据那么代码一点用处也没有。2. 使用不方便,这类文章所提供的代码片段,可能需要你自己去封装,如果要在不同的项目里使用,就需要不停地copy代码。
而在我看来,解决地图绘制痛点最优雅的方式应该是直接写一个python第三方扩展包,预置数据,pip安装,极简调用。但是我似乎并没有找到有人写这样的包,既然之前没有人写,那我就来做第一个吧。
cnmaps: 让中国地图画起来更丝滑
编写cnmaps的目标是简化一切能简化的步骤,让中国区域的地图绘制的功能变得简单、直接。
目前cnmaps仅支持python>=3.6的版本,因此我们先用conda创建一个基于python3.6的干净的虚拟环境并且激活它
$ conda create -n cnmaps -y python=3.6 $ conda activate cnmaps
在安装cnmaps之前,我们还需要预先安装cartopy,且建议cartopy的版本在 0.19.0 及以上,由于cartopy的依赖比较复杂,用pip安装会比较费事,所以我们用conda安装。
(cnmaps) $ conda install -c conda-forge -y cartopy==0.19.0
把上面的准备工作都做完以后,我们就可以安装cnmaps了,安装cnmaps很简单,可以直接用pip安装
(cnmaps) $ pip install cnmaps
自带地图
cnmaps想要解决的第一个痛点是:地图数据查找。
因此cnmaps是自带地图的,当你安装cnmaps以后,它就已经预先把中国国界和省界的边界数据装好了,原始数据来自高德开放API,绝对合规,可以放心食用。
让我们先来绘制一张最简单的中国地图
import cartopy.crs as ccrs import matplotlib.pyplot as plt from cnmaps import get_map, draw_map fig = plt.figure(figsize=(10,10)) ax = fig.add_subplot(111, projection=ccrs.PlateCarree()) draw_map(get_map('中国'), color='k') draw_map(get_map('南海'), color='k') plt.savefig('china.png', bbox_inches='tight')
我们再来绘制一张四省地图
import cartopy.crs as ccrs import matplotlib.pyplot as plt from cnmaps import get_map, draw_map PROVINCES = ['河北', '河南', '山东', '山西'] fig = plt.figure(figsize=(10, 10)) fig.tight_layout() for i, prov in enumerate(PROVINCES): ax = fig.add_subplot(2, 2, i + 1, projection=ccrs.PlateCarree()) draw_map(get_map(prov), color='k') plt.savefig('./prov4.png', bbox_inches='tight')
这里讲解一下,绘制地图的核心函数有两个:一个是
get_map
,另一个是draw_map
,其中get_map
传入的第一个参数是地图的名称,例如get_map('河南')
,它返回的是一个MapPolygon
对象,draw_map
所需要接收的第一个参数就是这个MapPolygon
对象,然后绘图,另外draw_map
函数最终执行绘图的是plt.plot
函数,get_map
除了第一个参数是地图对象以外,其他关键字参数都是传给plt.plot
,注意避免传入plt.plot
不认识的参数。大家可以自行尝试感兴趣的省份来绘图,直接向
get_map
中传入该省的中文简写、全称、车牌的前缀以及英文名,例如get_map('山西')
、get_map('山西省')
、get_map('晋')
和get_map('Shanxi')
是等同的,都可以取到山西省的边界数据。注意,目前cnmaps的数据尚未支持到市、县界,仅能绘制出省(直辖市、特区)级别的行政区域。
自由组合你需要的地图区域
cnmaps想要解决的第二个痛点是:地图之间的组合。
设想一下,你现在正在研究一个关于京津冀的污染的项目,需要京津冀的边界文件,这时候你要怎么做呢?可能需要先找到北京、天津和河北的shapefile文件,然后打开QGIS或者ArcGIS,去网上查找相关的教程进行操作,把三个边界合成一个,然后再输出成新的shapefile再去画图是吗?
如果用cnmaps,这一过程可以很轻松地完成。
import cartopy.crs as ccrs import matplotlib.pyplot as plt from cnmaps import get_map, draw_map jingjinji = get_map('北京') + get_map('天津') + get_map('河北') fig = plt.figure(figsize=(10, 10)) ax = fig.add_subplot(111, projection=ccrs.PlateCarree()) draw_map(jingjinji, color='k') plt.savefig('./jingjinji.png', bbox_inches='tight')
看到了吗?我们直接把北京、天津、河北的地图对象相加,就合并出了京津冀地区的边界,是不是很简单很直接?类似的你们可以尝试一下东三省、江浙沪、川渝…
等值线图裁减
cnmaps想要解决的第三个痛点是:繁琐的地图裁减过程。
就这个地图裁减,会在很多分享的博客文章里出现(当然包括我之前的某些文章),作者通常会贴出大量的代码细节,甚至已经细致到了对画轴笔线点的连接操作,显然这种形式会劝退很多不那么自信的读者。而某些自信的读者在粘贴了这些代码以后,又可能会因为代码对运行环境的各种依赖问题而陷入漫长的调试。
所以我认为应该有一个足够抽象、健壮、具有通用性和强内聚性的函数,让调用者完全无需知道内部细节就可以丝滑使用。因此我写了一个
clip_countours_by_map
函数,下面我们继续以京津冀为例子,来看一下clip_countours_by_map
的效果。import cartopy.crs as ccrs import matplotlib.pyplot as plt import numpy as np from cnmaps import get_map, draw_map, clip_contours_by_map from cnmaps.sample import load_dem lons, lats, dem = load_dem() jingjinji = get_map('北京') + get_map('天津') + get_map('河北') fig = plt.figure(figsize=(10, 10)) ax = fig.add_subplot(111, projection=ccrs.PlateCarree()) draw_map(jingjinji, color='k') cs = ax.contourf(lons, lats, dem, cmap=plt.cm.terrain, levels=np.linspace(-2112, dem.max(), 10)) clip_contours_by_map(cs, jingjinji) ax.set_extent(jingjinji.get_extent(buffer=1)) plt.savefig('./jingjinji-cliped-dem.png', bbox_inches='tight')
clip_countours_by_map
的作用是根据地图裁减等值线,它需要传入的第一个参数,是一个matplotlib.contour.QuadContourSet
对象,也就是调用ax.contourf
所返回的对象,第二个参数需要传入地图边界对象,也就是通过get_map
以及它们之间的运算而得到的对象。我们可以看到上述代码中又出现了一个新的方法函数
get_extent
,这个函数是绑定在地图对象上的,对于初学者来说,你只要知道所有get_map
返回的以及它们之间运算得到的对象,都可以调用这个方法函数,你可以把它近似理解为“缩放到地图位置”。get_extent
只接受一个参数buffer
,不同buffer
的效果大概是如下这样:通常情况下,如果一个多边形有洞,若不加处理,在裁减时会将洞忽略掉,或者无法正确裁切,而
clip_countours_by_map
函数解决了类似的问题,可以正确地进行有洞多边形的裁切,例如我们把京津冀区域去掉北京(比如你在研究环京污染之类的),从而形成一个带洞的多边形再绘图。import cartopy.crs as ccrs import matplotlib.pyplot as plt import numpy as np from cnmaps import get_map, draw_map, clip_contours_by_map from cnmaps.sample import load_dem lons, lats, dem = load_dem() jinji = get_map('天津') + get_map('河北') fig = plt.figure(figsize=(10, 10)) fig.tight_layout() ax = fig.add_subplot(111, projection=ccrs.PlateCarree()) draw_map(jinji, color='k') cs = ax.contourf(lons, lats, dem, cmap=plt.cm.terrain, levels=np.linspace(-2112, dem.max(), 10)) clip_contours_by_map(cs, jinji) ax.set_extent(jinji.get_extent(buffer=1)) plt.savefig('./jinji-cliped-dem.png', bbox_inches='tight')
喏,带洞多边形的裁切就完成了。
这里我想多说两句,其实对于地图裁减,有很多种解决方案,但归根结底本质上只分为两种,一种是数据掩膜,一种是图形裁切。数据掩膜的本质是从输入端做处理,将区域外的数据做遮罩,使用这类方法的实现比较典型的就是
salem
,但是这类方法有一个问题,就是会有锯齿,当你数据的分辨率比较粗的时候,锯齿会非常的明显,仿佛打了码。而图形裁切方案,是从matplotlib图形对象入手,在输出端进行裁切,它的过程是先把完整的数据图整个画出来(当然也会包含插值),然后按照轮廓把所需的部分像剪纸一样“剪”出来,这样出来的图形完全不会有锯齿。当然了,除了上述的裁减方式以外,我们还可以配合
contour
和clabel
来绘制等值线及标签。import cartopy.crs as ccrs import matplotlib.pyplot as plt import numpy as np from cnmaps import (get_map, draw_map, clip_contours_by_map, clip_clabels_by_map) from cnmaps.sample import load_dem lons, lats, dem = load_dem('京津冀') # 构建京津冀地图 jingjinji = get_map('北京') + get_map('天津') + get_map('河北') fig = plt.figure(figsize=(10, 10)) fig.tight_layout() ax = fig.add_subplot(111, projection=ccrs.PlateCarree()) draw_map(jingjinji, color='k') csf = ax.contourf(lons, lats, dem, cmap=plt.cm.terrain, levels=np.linspace(-2112, 8700, 20)) # 切填色等值线 clip_contours_by_map(csf, jingjinji) cs = ax.contour(lons, lats, dem, colors='b', levels=np.linspace(-2112, 8700, 20)) # 切等值线 clip_contours_by_map(cs, jingjinji) clabels = ax.clabel(cs, inline=True, fmt='%i') # 用地图对象切出标签 clip_clabels_by_map(clabels, jingjinji) ax.set_extent(jingjinji.get_extent(buffer=1)) plt.savefig('./jingjinji-cliped-dem-with-clabels.png', bbox_inches='tight')
从这个例子同时也可以看出,clip_countours_by_map
不仅适用于contourf
,也适用于contour
。
但是需要注意的一点是,由于cartopy本身在重写matplotlib的
Axes
类方法的时候,不知道是因为设计缺陷还是什么原因,在0.18.0
版本中对于clabel
方法的返回值与原版不一致,它什么也不返回,导致我们无法编辑Text
对象列表,进而无法实现对clabel
的裁切,好在这一问题在0.19.0
及以上版本得到了修复,所以强烈建议使用cartopy>=0.19.0版本。多种投影支持
cnmaps想要解决的第四个痛点是:投影转换。
地图投影是气象学避不开的话题,如果你研究的是行星尺度、或者高纬地区,那更是可能把各种五花八门的投影给祭出来了,所以投影问题当然是cnmaps必须要考虑的。
其实平心而论,我个人认为basemap的坐标投影转换写得很良心,使用起来简直就是无脑操作,而cartopy在坐标投影转换上的实现语法就显得非常啰嗦。但是没关系,cnmaps会帮你隐藏这些无聊的语法。
我们先来看一个例子
import cartopy.crs as ccrs import matplotlib.pyplot as plt from cnmaps import get_map, draw_map, clip_contours_by_map from cnmaps.sample import load_dem lons, lats, dem = load_dem() fig = plt.figure(figsize=(16, 12)) fig.tight_layout() china = get_map('中国') ax = fig.add_subplot(111, projection=ccrs.Robinson(central_longitude=100)) cs = ax.contourf(lons, lats, dem, cmap=plt.cm.terrain, transform=ccrs.PlateCarree()) clip_contours_by_map(cs, china) draw_map(china, color='r') draw_map(get_map('南海'), color='r') ax.set_global() ax.coastlines() plt.title('Robinson') plt.savefig('./china-clip-robinson.png', bbox_inches='tight')
对于cartopy来说,切换投影需要改的地方有两处,一是在添加子图的时候,需要把
projection
参数改成你想要展示的投影的cartopy定义的CRS
对象,然后在调用contourf
或者contour
绘图的时候,把数据源所使用的原始投影的CRS
对象传入transform
参数即可,其实上面描述的过程,就是cartopy给我们指定的投影转换方法(文档连接),而对于cnmaps所要修改的地方有多少呢?答案是0,也就是说只要你遵循cartopy给你指定的投影转换方法进行投影转换,那么cnmaps会自动帮你把剩下的事情通通搞定。
最后让我们来欣赏一下cnmaps在其他投影上的表现。
项目链接:https://github.com/Clarmy/cnmaps
欢迎提交Issue和PR
前辈厉害了,试问下前辈在哪儿工作嘞
我目前是在墨迹天气做开发
这个版本的数据编码是不是有问题啊。我读取数据的时候会报编码的错
有可能会有bug,因为也是刚开发出来,并没有在所有平台做充分的测试,如果您发现有问题,请到这里提交一个Issue,把问题描述清楚,附上报错信息,我会进行debug。
为什么我pip install cnmaps安装不了啊,为什么。
报的什么错呢?
到了安装的最后一步报错了,看不懂
pip install cnmaps
(cnmaps) C:\WINDOWS\system32>pip install cnmaps
Collecting cnmaps
Using cached cnmaps-1.0.1-py3-none-any.whl
Collecting geopandas
Using cached geopandas-0.9.0-py2.py3-none-any.whl (994 kB)
Requirement already satisfied: Shapely in c:\programdata\anaconda3\envs\cnmaps\lib\site-packages (from cnmaps) (1.7.1)
Requirement already satisfied: matplotlib in c:\programdata\anaconda3\envs\cnmaps\lib\site-packages (from cnmaps) (3.3.4)
Requirement already satisfied: numpy in c:\programdata\anaconda3\envs\cnmaps\lib\site-packages (from cnmaps) (1.19.5)
Collecting netCDF4
Using cached netCDF4-1.5.8.tar.gz (767 kB)
ERROR: Command errored out with exit status 1:
command: ‘C:\ProgramData\Anaconda3\envs\cnmaps\python.exe’ -c ‘import io, os, sys, setuptools, tokenize; sys.argv[0] = ‘”‘”‘C:\\Users\\HEJIAS~1\\AppData\\Local\\Temp\\pip-install-j754abo7\\netcdf4_3fcc1ebed01a4b81bc036b9d6e94fb5a\\setup.py'”‘”‘; __file__='”‘”‘C:\\Users\\HEJIAS~1\\AppData\\Local\\Temp\\pip-install-j754abo7\\netcdf4_3fcc1ebed01a4b81bc036b9d6e94fb5a\\setup.py'”‘”‘;f = getattr(tokenize, ‘”‘”‘open'”‘”‘, open)(__file__) if os.path.exists(__file__) else io.StringIO(‘”‘”‘from setuptools import setup; setup()'”‘”‘);code = f.read().replace(‘”‘”‘\r\n'”‘”‘, ‘”‘”‘\n'”‘”‘);f.close();exec(compile(code, __file__, ‘”‘”‘exec'”‘”‘))’ egg_info –egg-base ‘C:\Users\HEJIAS~1\AppData\Local\Temp\pip-pip-egg-info-v17gg4z0’
cwd: C:\Users\HEJIAS~1\AppData\Local\Temp\pip-install-j754abo7\netcdf4_3fcc1ebed01a4b81bc036b9d6e94fb5a\
Complete output (26 lines):
Traceback (most recent call last):
File “”, line 1, in
File “C:\Users\HEJIAS~1\AppData\Local\Temp\pip-install-j754abo7\netcdf4_3fcc1ebed01a4b81bc036b9d6e94fb5a\setup.py”, line 419, in
_populate_hdf5_info(dirstosearch, inc_dirs, libs, lib_dirs)
File “C:\Users\HEJIAS~1\AppData\Local\Temp\pip-install-j754abo7\netcdf4_3fcc1ebed01a4b81bc036b9d6e94fb5a\setup.py”, line 360, in _populate_hdf5_info
raise ValueError(‘did not find HDF5 headers’)
ValueError: did not find HDF5 headers
reading from setup.cfg…
HDF5_DIR environment variable not set, checking some standard locations ..
checking C:\ProgramData\Anaconda3\envs\cnmaps\include …
hdf5 headers not found in C:\ProgramData\Anaconda3\envs\cnmaps\include
checking C:\ProgramData\Anaconda3\envs\cnmaps\Library\include …
hdf5 headers not found in C:\ProgramData\Anaconda3\envs\cnmaps\Library\include
checking C:\Users\hejiashan\include …
hdf5 headers not found in C:\Users\hejiashan\include
checking /usr/local\include …
hdf5 headers not found in /usr/local\include
checking /sw\include …
hdf5 headers not found in /sw\include
checking /opt\include …
hdf5 headers not found in /opt\include
checking /opt/local\include …
hdf5 headers not found in /opt/local\include
checking /usr\include …
hdf5 headers not found in /usr\include
—————————————-
WARNING: Discarding https://files.pythonhosted.org/packages/e4/09/c7582134adb67b2ef136b954344d0522e9e3e1c7a292004eec0e8f8b1f0d/netCDF4-1.5.8.tar.gz#sha256=ca3d468f4812c0999df86e3f428851fb0c17ac34ce0827115c246b0b690e4e84 (from https://pypi.org/simple/netcdf4/). Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
Using cached netCDF4-1.5.7.tar.gz (763 kB)
ERROR: Command errored out with exit status 1:
command: ‘C:\ProgramData\Anaconda3\envs\cnmaps\python.exe’ -c ‘import io, os, sys, setuptools, tokenize; sys.argv[0] = ‘”‘”‘C:\\Users\\HEJIAS~1\\AppData\\Local\\Temp\\pip-install-j754abo7\\netcdf4_d6f5ec8fd80b47ac9d84a257752f809b\\setup.py'”‘”‘; __file__='”‘”‘C:\\Users\\HEJIAS~1\\AppData\\Local\\Temp\\pip-install-j754abo7\\netcdf4_d6f5ec8fd80b47ac9d84a257752f809b\\setup.py'”‘”‘;f = getattr(tokenize, ‘”‘”‘open'”‘”‘, open)(__file__) if os.path.exists(__file__) else io.StringIO(‘”‘”‘from setuptools import setup; setup()'”‘”‘);code = f.read().replace(‘”‘”‘\r\n'”‘”‘, ‘”‘”‘\n'”‘”‘);f.close();exec(compile(code, __file__, ‘”‘”‘exec'”‘”‘))’ egg_info –egg-base ‘C:\Users\HEJIAS~1\AppData\Local\Temp\pip-pip-egg-info-emphis6d’
cwd: C:\Users\HEJIAS~1\AppData\Local\Temp\pip-install-j754abo7\netcdf4_d6f5ec8fd80b47ac9d84a257752f809b\
Complete output (26 lines):
Traceback (most recent call last):
File “”, line 1, in
File “C:\Users\HEJIAS~1\AppData\Local\Temp\pip-install-j754abo7\netcdf4_d6f5ec8fd80b47ac9d84a257752f809b\setup.py”, line 419, in
_populate_hdf5_info(dirstosearch, inc_dirs, libs, lib_dirs)
File “C:\Users\HEJIAS~1\AppData\Local\Temp\pip-install-j754abo7\netcdf4_d6f5ec8fd80b47ac9d84a257752f809b\setup.py”, line 360, in _populate_hdf5_info
raise ValueError(‘did not find HDF5 headers’)
ValueError: did not find HDF5 headers
reading from setup.cfg…
HDF5_DIR environment variable not set, checking some standard locations ..
checking C:\ProgramData\Anaconda3\envs\cnmaps\include …
hdf5 headers not found in C:\ProgramData\Anaconda3\envs\cnmaps\include
checking C:\ProgramData\Anaconda3\envs\cnmaps\Library\include …
hdf5 headers not found in C:\ProgramData\Anaconda3\envs\cnmaps\Library\include
checking C:\Users\hejiashan\include …
hdf5 headers not found in C:\Users\hejiashan\include
checking /usr/local\include …
hdf5 headers not found in /usr/local\include
checking /sw\include …
hdf5 headers not found in /sw\include
checking /opt\include …
hdf5 headers not found in /opt\include
checking /opt/local\include …
hdf5 headers not found in /opt/local\include
checking /usr\include …
hdf5 headers not found in /usr\include
—————————————-
WARNING: Discarding https://files.pythonhosted.org/packages/df/e7/0eb5a6788502f0a1843f6b45a273c786a52d80c88003ce3d135a8c6da1bf/netCDF4-1.5.7.tar.gz#sha256=d145f9c12da29da3922d8b8aafea2a2a89501bcb28a219a46b7b828b57191594 (from https://pypi.org/simple/netcdf4/). Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
Using cached netCDF4-1.5.6-cp36-cp36m-win_amd64.whl (3.1 MB)
Collecting pyproj>=2.2.0
Using cached pyproj-3.0.1-cp36-cp36m-win_amd64.whl (14.6 MB)
Collecting pandas>=0.24.0
Using cached pandas-1.1.5-cp36-cp36m-win_amd64.whl (8.7 MB)
Collecting fiona>=1.8
Using cached Fiona-1.8.21.tar.gz (1.0 MB)
ERROR: Command errored out with exit status 1:
command: ‘C:\ProgramData\Anaconda3\envs\cnmaps\python.exe’ -c ‘import io, os, sys, setuptools, tokenize; sys.argv[0] = ‘”‘”‘C:\\Users\\HEJIAS~1\\AppData\\Local\\Temp\\pip-install-j754abo7\\fiona_0fa83e1a03f64559a463afcb96b40e37\\setup.py'”‘”‘; __file__='”‘”‘C:\\Users\\HEJIAS~1\\AppData\\Local\\Temp\\pip-install-j754abo7\\fiona_0fa83e1a03f64559a463afcb96b40e37\\setup.py'”‘”‘;f = getattr(tokenize, ‘”‘”‘open'”‘”‘, open)(__file__) if os.path.exists(__file__) else io.StringIO(‘”‘”‘from setuptools import setup; setup()'”‘”‘);code = f.read().replace(‘”‘”‘\r\n'”‘”‘, ‘”‘”‘\n'”‘”‘);f.close();exec(compile(code, __file__, ‘”‘”‘exec'”‘”‘))’ egg_info –egg-base ‘C:\Users\HEJIAS~1\AppData\Local\Temp\pip-pip-egg-info-h1518k5t’
cwd: C:\Users\HEJIAS~1\AppData\Local\Temp\pip-install-j754abo7\fiona_0fa83e1a03f64559a463afcb96b40e37\
Complete output (1 lines):
A GDAL API version must be specified. Provide a path to gdal-config using a GDAL_CONFIG environment variable or use a GDAL_VERSION environment variable.
—————————————-
WARNING: Discarding https://files.pythonhosted.org/packages/67/5c/4e028e84a1f0cb3f8a994217cf2366360ca984dfc1433f6171de527d0dca/Fiona-1.8.21.tar.gz#sha256=3a0edca2a7a070db405d71187214a43d2333a57b4097544a3fcc282066a58bfc (from https://pypi.org/simple/fiona/). Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
Using cached Fiona-1.8.20.tar.gz (1.3 MB)
ERROR: Command errored out with exit status 1:
command: ‘C:\ProgramData\Anaconda3\envs\cnmaps\python.exe’ -c ‘import io, os, sys, setuptools, tokenize; sys.argv[0] = ‘”‘”‘C:\\Users\\HEJIAS~1\\AppData\\Local\\Temp\\pip-install-j754abo7\\fiona_504f5a3a46f143fd9f2c37299e596f8e\\setup.py'”‘”‘; __file__='”‘”‘C:\\Users\\HEJIAS~1\\AppData\\Local\\Temp\\pip-install-j754abo7\\fiona_504f5a3a46f143fd9f2c37299e596f8e\\setup.py'”‘”‘;f = getattr(tokenize, ‘”‘”‘open'”‘”‘, open)(__file__) if os.path.exists(__file__) else io.StringIO(‘”‘”‘from setuptools import setup; setup()'”‘”‘);code = f.read().replace(‘”‘”‘\r\n'”‘”‘, ‘”‘”‘\n'”‘”‘);f.close();exec(compile(code, __file__, ‘”‘”‘exec'”‘”‘))’ egg_info –egg-base ‘C:\Users\HEJIAS~1\AppData\Local\Temp\pip-pip-egg-info-7hc6ajkq’
cwd: C:\Users\HEJIAS~1\AppData\Local\Temp\pip-install-j754abo7\fiona_504f5a3a46f143fd9f2c37299e596f8e\
Complete output (1 lines):
A GDAL API version must be specified. Provide a path to gdal-config using a GDAL_CONFIG environment variable or use a GDAL_VERSION environment variable.
—————————————-
WARNING: Discarding https://files.pythonhosted.org/packages/ec/f7/093890341a7e8fbfcdfa04caf4dfb588ebab32c13ceaa6a3819da79ea106/Fiona-1.8.20.tar.gz#sha256=a70502d2857b82f749c09cb0dea3726787747933a2a1599b5ab787d74e3c143b (from https://pypi.org/simple/fiona/). Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
Using cached Fiona-1.8.19.tar.gz (1.3 MB)
ERROR: Command errored out with exit status 1:
command: ‘C:\ProgramData\Anaconda3\envs\cnmaps\python.exe’ -c ‘import io, os, sys, setuptools, tokenize; sys.argv[0] = ‘”‘”‘C:\\Users\\HEJIAS~1\\AppData\\Local\\Temp\\pip-install-j754abo7\\fiona_8f7e35806db24ccfa6caf10071a2fc70\\setup.py'”‘”‘; __file__='”‘”‘C:\\Users\\HEJIAS~1\\AppData\\Local\\Temp\\pip-install-j754abo7\\fiona_8f7e35806db24ccfa6caf10071a2fc70\\setup.py'”‘”‘;f = getattr(tokenize, ‘”‘”‘open'”‘”‘, open)(__file__) if os.path.exists(__file__) else io.StringIO(‘”‘”‘from setuptools import setup; setup()'”‘”‘);code = f.read().replace(‘”‘”‘\r\n'”‘”‘, ‘”‘”‘\n'”‘”‘);f.close();exec(compile(code, __file__, ‘”‘”‘exec'”‘”‘))’ egg_info –egg-base ‘C:\Users\HEJIAS~1\AppData\Local\Temp\pip-pip-egg-info-ek7kvlfm’
cwd: C:\Users\HEJIAS~1\AppData\Local\Temp\pip-install-j754abo7\fiona_8f7e35806db24ccfa6caf10071a2fc70\
Complete output (1 lines):
A GDAL API version must be specified. Provide a path to gdal-config using a GDAL_CONFIG environment variable or use a GDAL_VERSION environment variable.
—————————————-
WARNING: Discarding https://files.pythonhosted.org/packages/a0/d9/6042aeb073d11341f7726de0586ff71c13117c34959dcf07bd4ee6d4b93e/Fiona-1.8.19.tar.gz#sha256=b9059e0b29c2e9e6b817e53f941e77e1aca7075f986005d38db307067b60458f (from https://pypi.org/simple/fiona/). Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
Using cached Fiona-1.8.18.tar.gz (1.3 MB)
ERROR: Command errored out with exit status 1:
command: ‘C:\ProgramData\Anaconda3\envs\cnmaps\python.exe’ -c ‘import io, os, sys, setuptools, tokenize; sys.argv[0] = ‘”‘”‘C:\\Users\\HEJIAS~1\\AppData\\Local\\Temp\\pip-install-j754abo7\\fiona_5612955b90e348cab2c58563594cd046\\setup.py'”‘”‘; __file__='”‘”‘C:\\Users\\HEJIAS~1\\AppData\\Local\\Temp\\pip-install-j754abo7\\fiona_5612955b90e348cab2c58563594cd046\\setup.py'”‘”‘;f = getattr(tokenize, ‘”‘”‘open'”‘”‘, open)(__file__) if os.path.exists(__file__) else io.StringIO(‘”‘”‘from setuptools import setup; setup()'”‘”‘);code = f.read().replace(‘”‘”‘\r\n'”‘”‘, ‘”‘”‘\n'”‘”‘);f.close();exec(compile(code, __file__, ‘”‘”‘exec'”‘”‘))’ egg_info –egg-base ‘C:\Users\HEJIAS~1\AppData\Local\Temp\pip-pip-egg-info-31d3f_i9’
cwd: C:\Users\HEJIAS~1\AppData\Local\Temp\pip-install-j754abo7\fiona_5612955b90e348cab2c58563594cd046\
Complete output (1 lines):
A GDAL API version must be specified. Provide a path to gdal-config using a GDAL_CONFIG environment variable or use a GDAL_VERSION environment variable.
—————————————-
WARNING: Discarding https://files.pythonhosted.org/packages/9f/e8/401cdaa58d862a25c4b3365acf7d2bd7ac77191e3dc9acdcdac0eff20ff0/Fiona-1.8.18.tar.gz#sha256=b732ece0ff8886a29c439723a3e1fc382718804bb057519d537a81308854967a (from https://pypi.org/simple/fiona/). Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
Using cached Fiona-1.8.17.tar.gz (1.3 MB)
ERROR: Command errored out with exit status 1:
command: ‘C:\ProgramData\Anaconda3\envs\cnmaps\python.exe’ -c ‘import io, os, sys, setuptools, tokenize; sys.argv[0] = ‘”‘”‘C:\\Users\\HEJIAS~1\\AppData\\Local\\Temp\\pip-install-j754abo7\\fiona_e33deb5543b743fb84e06b36f26545ec\\setup.py'”‘”‘; __file__='”‘”‘C:\\Users\\HEJIAS~1\\AppData\\Local\\Temp\\pip-install-j754abo7\\fiona_e33deb5543b743fb84e06b36f26545ec\\setup.py'”‘”‘;f = getattr(tokenize, ‘”‘”‘open'”‘”‘, open)(__file__) if os.path.exists(__file__) else io.StringIO(‘”‘”‘from setuptools import setup; setup()'”‘”‘);code = f.read().replace(‘”‘”‘\r\n'”‘”‘, ‘”‘”‘\n'”‘”‘);f.close();exec(compile(code, __file__, ‘”‘”‘exec'”‘”‘))’ egg_info –egg-base ‘C:\Users\HEJIAS~1\AppData\Local\Temp\pip-pip-egg-info-wx7w2b9b’
cwd: C:\Users\HEJIAS~1\AppData\Local\Temp\pip-install-j754abo7\fiona_e33deb5543b743fb84e06b36f26545ec\
Complete output (1 lines):
A GDAL API version must be specified. Provide a path to gdal-config using a GDAL_CONFIG environment variable or use a GDAL_VERSION environment variable.
—————————————-
WARNING: Discarding https://files.pythonhosted.org/packages/88/62/69347ba2c41b526e1953c4cb66d51170b2869808863c03af202ba0121670/Fiona-1.8.17.tar.gz#sha256=716201c21246587f374785bec6d6a20a984fe1f6c2b0e83bf15127eb8f724d0c (from https://pypi.org/simple/fiona/). Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
Using cached Fiona-1.8.16.tar.gz (1.3 MB)
ERROR: Command errored out with exit status 1:
command: ‘C:\ProgramData\Anaconda3\envs\cnmaps\python.exe’ -c ‘import io, os, sys, setuptools, tokenize; sys.argv[0] = ‘”‘”‘C:\\Users\\HEJIAS~1\\AppData\\Local\\Temp\\pip-install-j754abo7\\fiona_1a0e885bdb654fd3a15574da108c84d5\\setup.py'”‘”‘; __file__='”‘”‘C:\\Users\\HEJIAS~1\\AppData\\Local\\Temp\\pip-install-j754abo7\\fiona_1a0e885bdb654fd3a15574da108c84d5\\setup.py'”‘”‘;f = getattr(tokenize, ‘”‘”‘open'”‘”‘, open)(__file__) if os.path.exists(__file__) else io.StringIO(‘”‘”‘from setuptools import setup; setup()'”‘”‘);code = f.read().replace(‘”‘”‘\r\n'”‘”‘, ‘”‘”‘\n'”‘”‘);f.close();exec(compile(code, __file__, ‘”‘”‘exec'”‘”‘))’ egg_info –egg-base ‘C:\Users\HEJIAS~1\AppData\Local\Temp\pip-pip-egg-info-cvdeyr77’
cwd: C:\Users\HEJIAS~1\AppData\Local\Temp\pip-install-j754abo7\fiona_1a0e885bdb654fd3a15574da108c84d5\
Complete output (1 lines):
A GDAL API version must be specified. Provide a path to gdal-config using a GDAL_CONFIG environment variable or use a GDAL_VERSION environment variable.
—————————————-
WARNING: Discarding https://files.pythonhosted.org/packages/1e/60/dfc6115a11338d8aa96cacd8c60635223d9c97d61d556c90acc5dfd663fa/Fiona-1.8.16.tar.gz#sha256=fd6dfb65959becc916e9f6928618bfd59c16cdbc413ece0fbac61489cd11255f (from https://pypi.org/simple/fiona/). Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
Using cached Fiona-1.8.15.tar.gz (1.3 MB)
ERROR: Command errored out with exit status 1:
command: ‘C:\ProgramData\Anaconda3\envs\cnmaps\python.exe’ -c ‘import io, os, sys, setuptools, tokenize; sys.argv[0] = ‘”‘”‘C:\\Users\\HEJIAS~1\\AppData\\Local\\Temp\\pip-install-j754abo7\\fiona_b83f9f335f9a4802809441b416791bd1\\setup.py'”‘”‘; __file__='”‘”‘C:\\Users\\HEJIAS~1\\AppData\\Local\\Temp\\pip-install-j754abo7\\fiona_b83f9f335f9a4802809441b416791bd1\\setup.py'”‘”‘;f = getattr(tokenize, ‘”‘”‘open'”‘”‘, open)(__file__) if os.path.exists(__file__) else io.StringIO(‘”‘”‘from setuptools import setup; setup()'”‘”‘);code = f.read().replace(‘”‘”‘\r\n'”‘”‘, ‘”‘”‘\n'”‘”‘);f.close();exec(compile(code, __file__, ‘”‘”‘exec'”‘”‘))’ egg_info –egg-base ‘C:\Users\HEJIAS~1\AppData\Local\Temp\pip-pip-egg-info-yygy0_5b’
cwd: C:\Users\HEJIAS~1\AppData\Local\Temp\pip-install-j754abo7\fiona_b83f9f335f9a4802809441b416791bd1\
Complete output (1 lines):
A GDAL API version must be specified. Provide a path to gdal-config using a GDAL_CONFIG environment variable or use a GDAL_VERSION environment variable.
—————————————-
WARNING: Discarding https://files.pythonhosted.org/packages/55/2f/17450ec2c8fcc720a8a3e4d9a383499508475c7cfb90f7eca9fb585ac598/Fiona-1.8.15.tar.gz#sha256=3b1c9b5c834fae2fe947cfaea176db890bc6750d1a6ba9f54d969c19ffcd191e (from https://pypi.org/simple/fiona/). Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
Using cached Fiona-1.8.14.tar.gz (1.3 MB)
ERROR: Command errored out with exit status 1:
command: ‘C:\ProgramData\Anaconda3\envs\cnmaps\python.exe’ -c ‘import io, os, sys, setuptools, tokenize; sys.argv[0] = ‘”‘”‘C:\\Users\\HEJIAS~1\\AppData\\Local\\Temp\\pip-install-j754abo7\\fiona_72cb7b66eb9e432c9dcf8aacbb44a1ae\\setup.py'”‘”‘; __file__='”‘”‘C:\\Users\\HEJIAS~1\\AppData\\Local\\Temp\\pip-install-j754abo7\\fiona_72cb7b66eb9e432c9dcf8aacbb44a1ae\\setup.py'”‘”‘;f = getattr(tokenize, ‘”‘”‘open'”‘”‘, open)(__file__) if os.path.exists(__file__) else io.StringIO(‘”‘”‘from setuptools import setup; setup()'”‘”‘);code = f.read().replace(‘”‘”‘\r\n'”‘”‘, ‘”‘”‘\n'”‘”‘);f.close();exec(compile(code, __file__, ‘”‘”‘exec'”‘”‘))’ egg_info –egg-base ‘C:\Users\HEJIAS~1\AppData\Local\Temp\pip-pip-egg-info-iyfaxz3c’
cwd: C:\Users\HEJIAS~1\AppData\Local\Temp\pip-install-j754abo7\fiona_72cb7b66eb9e432c9dcf8aacbb44a1ae\
Complete output (1 lines):
A GDAL API version must be specified. Provide a path to gdal-config using a GDAL_CONFIG environment variable or use a GDAL_VERSION environment variable.
—————————————-
WARNING: Discarding https://files.pythonhosted.org/packages/5c/fd/5ec54f2d9b3d5dd23dd443fad5630d6b872e2664814c68b856c47e0d65af/Fiona-1.8.14.tar.gz#sha256=6eac038206c89d2cf5f99ea38b81cc228dc21eac5f47870a9a32d453b0007f4d (from https://pypi.org/simple/fiona/). Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
Using cached Fiona-1.8.13.post1.tar.gz (1.2 MB)
ERROR: Command errored out with exit status 1:
command: ‘C:\ProgramData\Anaconda3\envs\cnmaps\python.exe’ -c ‘import io, os, sys, setuptools, tokenize; sys.argv[0] = ‘”‘”‘C:\\Users\\HEJIAS~1\\AppData\\Local\\Temp\\pip-install-j754abo7\\fiona_151ccaeccb034ec695266ff7fb3b20d3\\setup.py'”‘”‘; __file__='”‘”‘C:\\Users\\HEJIAS~1\\AppData\\Local\\Temp\\pip-install-j754abo7\\fiona_151ccaeccb034ec695266ff7fb3b20d3\\setup.py'”‘”‘;f = getattr(tokenize, ‘”‘”‘open'”‘”‘, open)(__file__) if os.path.exists(__file__) else io.StringIO(‘”‘”‘from setuptools import setup; setup()'”‘”‘);code = f.read().replace(‘”‘”‘\r\n'”‘”‘, ‘”‘”‘\n'”‘”‘);f.close();exec(compile(code, __file__, ‘”‘”‘exec'”‘”‘))’ egg_info –egg-base ‘C:\Users\HEJIAS~1\AppData\Local\Temp\pip-pip-egg-info-b5roz6wn’
cwd: C:\Users\HEJIAS~1\AppData\Local\Temp\pip-install-j754abo7\fiona_151ccaeccb034ec695266ff7fb3b20d3\
Complete output (1 lines):
A GDAL API version must be specified. Provide a path to gdal-config using a GDAL_CONFIG environment variable or use a GDAL_VERSION environment variable.
—————————————-
WARNING: Discarding https://files.pythonhosted.org/packages/6d/42/f4a7cac53b28fa70e9a93d0e89a24d33e14826dad6644b699362ad84dde0/Fiona-1.8.13.post1.tar.gz#sha256=1a432bf9fd56f089256c010da009c90d4a795c531a848132c965052185336600 (from https://pypi.org/simple/fiona/). Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
Using cached Fiona-1.8.13.tar.gz (1.2 MB)
ERROR: Command errored out with exit status 1:
command: ‘C:\ProgramData\Anaconda3\envs\cnmaps\python.exe’ -c ‘import io, os, sys, setuptools, tokenize; sys.argv[0] = ‘”‘”‘C:\\Users\\HEJIAS~1\\AppData\\Local\\Temp\\pip-install-j754abo7\\fiona_d0e79b767d8349d48b1489040cb5845e\\setup.py'”‘”‘; __file__='”‘”‘C:\\Users\\HEJIAS~1\\AppData\\Local\\Temp\\pip-install-j754abo7\\fiona_d0e79b767d8349d48b1489040cb5845e\\setup.py'”‘”‘;f = getattr(tokenize, ‘”‘”‘open'”‘”‘, open)(__file__) if os.path.exists(__file__) else io.StringIO(‘”‘”‘from setuptools import setup; setup()'”‘”‘);code = f.read().replace(‘”‘”‘\r\n'”‘”‘, ‘”‘”‘\n'”‘”‘);f.close();exec(compile(code, __file__, ‘”‘”‘exec'”‘”‘))’ egg_info –egg-base ‘C:\Users\HEJIAS~1\AppData\Local\Temp\pip-pip-egg-info-4w92x5y7’
cwd: C:\Users\HEJIAS~1\AppData\Local\Temp\pip-install-j754abo7\fiona_d0e79b767d8349d48b1489040cb5845e\
Complete output (1 lines):
A GDAL API version must be specified. Provide a path to gdal-config using a GDAL_CONFIG environment variable or use a GDAL_VERSION environment variable.
—————————————-
WARNING: Discarding https://files.pythonhosted.org/packages/be/04/31d0a6f03943b1684f32c9b861be40c1fd282468fa6bd54ddf4a774e6b0f/Fiona-1.8.13.tar.gz#sha256=5ec34898c8b983a723fb4e949dd3e0ed7e691c303e51f6bfd61e52ac9ac813ae (from https://pypi.org/simple/fiona/). Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
Using cached Fiona-1.8.12.tar.gz (1.2 MB)
ERROR: Command errored out with exit status 1:
command: ‘C:\ProgramData\Anaconda3\envs\cnmaps\python.exe’ -c ‘import io, os, sys, setuptools, tokenize; sys.argv[0] = ‘”‘”‘C:\\Users\\HEJIAS~1\\AppData\\Local\\Temp\\pip-install-j754abo7\\fiona_ef757ebaa789470a9ad91c2e49edf2d8\\setup.py'”‘”‘; __file__='”‘”‘C:\\Users\\HEJIAS~1\\AppData\\Local\\Temp\\pip-install-j754abo7\\fiona_ef757ebaa789470a9ad91c2e49edf2d8\\setup.py'”‘”‘;f = getattr(tokenize, ‘”‘”‘open'”‘”‘, open)(__file__) if os.path.exists(__file__) else io.StringIO(‘”‘”‘from setuptools import setup; setup()'”‘”‘);code = f.read().replace(‘”‘”‘\r\n'”‘”‘, ‘”‘”‘\n'”‘”‘);f.close();exec(compile(code, __file__, ‘”‘”‘exec'”‘”‘))’ egg_info –egg-base ‘C:\Users\HEJIAS~1\AppData\Local\Temp\pip-pip-egg-info-3gvvip7i’
cwd: C:\Users\HEJIAS~1\AppData\Local\Temp\pip-install-j754abo7\fiona_ef757ebaa789470a9ad91c2e49edf2d8\
Complete output (1 lines):
A GDAL API version must be specified. Provide a path to gdal-config using a GDAL_CONFIG environment variable or use a GDAL_VERSION environment variable.
—————————————-
WARNING: Discarding https://files.pythonhosted.org/packages/97/d8/feab39987296437fbdc3029fb39752a14355d217d73b93471010b8dd63a3/Fiona-1.8.12.tar.gz#sha256=c9266ddf6ae2a64fcea20014ddf27f800ac07584f2fdb09c2a02f3b3a52e371c (from https://pypi.org/simple/fiona/). Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
Using cached Fiona-1.8.11.tar.gz (1.2 MB)
ERROR: Command errored out with exit status 1:
command: ‘C:\ProgramData\Anaconda3\envs\cnmaps\python.exe’ -c ‘import io, os, sys, setuptools, tokenize; sys.argv[0] = ‘”‘”‘C:\\Users\\HEJIAS~1\\AppData\\Local\\Temp\\pip-install-j754abo7\\fiona_62bfdaa321874a378f218772c2344110\\setup.py'”‘”‘; __file__='”‘”‘C:\\Users\\HEJIAS~1\\AppData\\Local\\Temp\\pip-install-j754abo7\\fiona_62bfdaa321874a378f218772c2344110\\setup.py'”‘”‘;f = getattr(tokenize, ‘”‘”‘open'”‘”‘, open)(__file__) if os.path.exists(__file__) else io.StringIO(‘”‘”‘from setuptools import setup; setup()'”‘”‘);code = f.read().replace(‘”‘”‘\r\n'”‘”‘, ‘”‘”‘\n'”‘”‘);f.close();exec(compile(code, __file__, ‘”‘”‘exec'”‘”‘))’ egg_info –egg-base ‘C:\Users\HEJIAS~1\AppData\Local\Temp\pip-pip-egg-info-6j3i2ff4’
cwd: C:\Users\HEJIAS~1\AppData\Local\Temp\pip-install-j754abo7\fiona_62bfdaa321874a378f218772c2344110\
Complete output (1 lines):
A GDAL API version must be specified. Provide a path to gdal-config using a GDAL_CONFIG environment variable or use a GDAL_VERSION environment variable.
—————————————-
WARNING: Discarding https://files.pythonhosted.org/packages/9d/f4/0a0ddc6174c4a93679b5f1dd3535e7ef8989828e6d5f86112de681f8c87b/Fiona-1.8.11.tar.gz#sha256=1e7ca9e051f5bffa1c43c70d573da9ca223fc076b84fa73380614fc02b9eb7f6 (from https://pypi.org/simple/fiona/). Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
Using cached Fiona-1.8.10.tar.gz (1.2 MB)
ERROR: Command errored out with exit status 1:
command: ‘C:\ProgramData\Anaconda3\envs\cnmaps\python.exe’ -c ‘import io, os, sys, setuptools, tokenize; sys.argv[0] = ‘”‘”‘C:\\Users\\HEJIAS~1\\AppData\\Local\\Temp\\pip-install-j754abo7\\fiona_1aa0cd97a80e49108d165d12f6737c04\\setup.py'”‘”‘; __file__='”‘”‘C:\\Users\\HEJIAS~1\\AppData\\Local\\Temp\\pip-install-j754abo7\\fiona_1aa0cd97a80e49108d165d12f6737c04\\setup.py'”‘”‘;f = getattr(tokenize, ‘”‘”‘open'”‘”‘, open)(__file__) if os.path.exists(__file__) else io.StringIO(‘”‘”‘from setuptools import setup; setup()'”‘”‘);code = f.read().replace(‘”‘”‘\r\n'”‘”‘, ‘”‘”‘\n'”‘”‘);f.close();exec(compile(code, __file__, ‘”‘”‘exec'”‘”‘))’ egg_info –egg-base ‘C:\Users\HEJIAS~1\AppData\Local\Temp\pip-pip-egg-info-cl1bfyrw’
cwd: C:\Users\HEJIAS~1\AppData\Local\Temp\pip-install-j754abo7\fiona_1aa0cd97a80e49108d165d12f6737c04\
Complete output (1 lines):
A GDAL API version must be specified. Provide a path to gdal-config using a GDAL_CONFIG environment variable or use a GDAL_VERSION environment variable.
—————————————-
WARNING: Discarding https://files.pythonhosted.org/packages/13/73/f80b491ed8559326fab202a6d6333a3cd6e8be1e9d782bc6c0d03d476457/Fiona-1.8.10.tar.gz#sha256=ff562eb2f3960e21f8c7f050ddd7f47a763869ea14afc2234a40df72666c6a2c (from https://pypi.org/simple/fiona/). Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
Using cached Fiona-1.8.9.post2.tar.gz (1.2 MB)
ERROR: Command errored out with exit status 1:
command: ‘C:\ProgramData\Anaconda3\envs\cnmaps\python.exe’ -c ‘import io, os, sys, setuptools, tokenize; sys.argv[0] = ‘”‘”‘C:\\Users\\HEJIAS~1\\AppData\\Local\\Temp\\pip-install-j754abo7\\fiona_1ebb1efdafa3448981776f573e2771b7\\setup.py'”‘”‘; __file__='”‘”‘C:\\Users\\HEJIAS~1\\AppData\\Local\\Temp\\pip-install-j754abo7\\fiona_1ebb1efdafa3448981776f573e2771b7\\setup.py'”‘”‘;f = getattr(tokenize, ‘”‘”‘open'”‘”‘, open)(__file__) if os.path.exists(__file__) else io.StringIO(‘”‘”‘from setuptools import setup; setup()'”‘”‘);code = f.read().replace(‘”‘”‘\r\n'”‘”‘, ‘”‘”‘\n'”‘”‘);f.close();exec(compile(code, __file__, ‘”‘”‘exec'”‘”‘))’ egg_info –egg-base ‘C:\Users\HEJIAS~1\AppData\Local\Temp\pip-pip-egg-info-t75m_prq’
cwd: C:\Users\HEJIAS~1\AppData\Local\Temp\pip-install-j754abo7\fiona_1ebb1efdafa3448981776f573e2771b7\
Complete output (1 lines):
A GDAL API version must be specified. Provide a path to gdal-config using a GDAL_CONFIG environment variable or use a GDAL_VERSION environment variable.
—————————————-
WARNING: Discarding https://files.pythonhosted.org/packages/9b/52/45e75507660ce0e86176d0f59b659560f687e2c7e9ebf82a10e7dcd2d3b7/Fiona-1.8.9.post2.tar.gz#sha256=210fb038b579fab38f35ddbdd31b9725f4d5099b3edfd4b87c983e5d47b79983 (from https://pypi.org/simple/fiona/). Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
Using cached Fiona-1.8.9.post1.tar.gz (1.2 MB)
ERROR: Command errored out with exit status 1:
command: ‘C:\ProgramData\Anaconda3\envs\cnmaps\python.exe’ -c ‘import io, os, sys, setuptools, tokenize; sys.argv[0] = ‘”‘”‘C:\\Users\\HEJIAS~1\\AppData\\Local\\Temp\\pip-install-j754abo7\\fiona_593856019ceb42b4a17625a80864b467\\setup.py'”‘”‘; __file__='”‘”‘C:\\Users\\HEJIAS~1\\AppData\\Local\\Temp\\pip-install-j754abo7\\fiona_593856019ceb42b4a17625a80864b467\\setup.py'”‘”‘;f = getattr(tokenize, ‘”‘”‘open'”‘”‘, open)(__file__) if os.path.exists(__file__) else io.StringIO(‘”‘”‘from setuptools import setup; setup()'”‘”‘);code = f.read().replace(‘”‘”‘\r\n'”‘”‘, ‘”‘”‘\n'”‘”‘);f.close();exec(compile(code, __file__, ‘”‘”‘exec'”‘”‘))’ egg_info –egg-base ‘C:\Users\HEJIAS~1\AppData\Local\Temp\pip-pip-egg-info-qspabe0g’
cwd: C:\Users\HEJIAS~1\AppData\Local\Temp\pip-install-j754abo7\fiona_593856019ceb42b4a17625a80864b467\
Complete output (1 lines):
A GDAL API version must be specified. Provide a path to gdal-config using a GDAL_CONFIG environment variable or use a GDAL_VERSION environment variable.
—————————————-
WARNING: Discarding https://files.pythonhosted.org/packages/0e/a4/d9dd7399be809d3990f5000fb6ae43189ea26ae88be1bed3a4c9ddc1becc/Fiona-1.8.9.post1.tar.gz#sha256=d5e0ea0b8addffe9cba4cb59e2bd495b015230e7a1b1597974f5048211930199 (from https://pypi.org/simple/fiona/). Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
Using cached Fiona-1.8.9.tar.gz (1.2 MB)
ERROR: Command errored out with exit status 1:
command: ‘C:\ProgramData\Anaconda3\envs\cnmaps\python.exe’ -c ‘import io, os, sys, setuptools, tokenize; sys.argv[0] = ‘”‘”‘C:\\Users\\HEJIAS~1\\AppData\\Local\\Temp\\pip-install-j754abo7\\fiona_d0447321f3a2475b8ed08b45e08f27e8\\setup.py'”‘”‘; __file__='”‘”‘C:\\Users\\HEJIAS~1\\AppData\\Local\\Temp\\pip-install-j754abo7\\fiona_d0447321f3a2475b8ed08b45e08f27e8\\setup.py'”‘”‘;f = getattr(tokenize, ‘”‘”‘open'”‘”‘, open)(__file__) if os.path.exists(__file__) else io.StringIO(‘”‘”‘from setuptools import setup; setup()'”‘”‘);code = f.read().replace(‘”‘”‘\r\n'”‘”‘, ‘”‘”‘\n'”‘”‘);f.close();exec(compile(code, __file__, ‘”‘”‘exec'”‘”‘))’ egg_info –egg-base ‘C:\Users\HEJIAS~1\AppData\Local\Temp\pip-pip-egg-info-0rac2dl2’
cwd: C:\Users\HEJIAS~1\AppData\Local\Temp\pip-install-j754abo7\fiona_d0447321f3a2475b8ed08b45e08f27e8\
Complete output (1 lines):
A GDAL API version must be specified. Provide a path to gdal-config using a GDAL_CONFIG environment variable or use a GDAL_VERSION environment variable.
—————————————-
WARNING: Discarding https://files.pythonhosted.org/packages/ad/92/dcbd8c54d697c22f299b5af63b6df3acfbd06c6d72e249614c05be99337c/Fiona-1.8.9.tar.gz#sha256=4dd6e2f5327c1174143c7c8594a75d373bc72f2c9a2a6daee312c3186a128add (from https://pypi.org/simple/fiona/). Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
Using cached Fiona-1.8.8.tar.gz (1.7 MB)
ERROR: Command errored out with exit status 1:
command: ‘C:\ProgramData\Anaconda3\envs\cnmaps\python.exe’ -c ‘import io, os, sys, setuptools, tokenize; sys.argv[0] = ‘”‘”‘C:\\Users\\HEJIAS~1\\AppData\\Local\\Temp\\pip-install-j754abo7\\fiona_e7412beeb42f469f976beb4a1df63bac\\setup.py'”‘”‘; __file__='”‘”‘C:\\Users\\HEJIAS~1\\AppData\\Local\\Temp\\pip-install-j754abo7\\fiona_e7412beeb42f469f976beb4a1df63bac\\setup.py'”‘”‘;f = getattr(tokenize, ‘”‘”‘open'”‘”‘, open)(__file__) if os.path.exists(__file__) else io.StringIO(‘”‘”‘from setuptools import setup; setup()'”‘”‘);code = f.read().replace(‘”‘”‘\r\n'”‘”‘, ‘”‘”‘\n'”‘”‘);f.close();exec(compile(code, __file__, ‘”‘”‘exec'”‘”‘))’ egg_info –egg-base ‘C:\Users\HEJIAS~1\AppData\Local\Temp\pip-pip-egg-info-au7oj4al’
cwd: C:\Users\HEJIAS~1\AppData\Local\Temp\pip-install-j754abo7\fiona_e7412beeb42f469f976beb4a1df63bac\
Complete output (1 lines):
A GDAL API version must be specified. Provide a path to gdal-config using a GDAL_CONFIG environment variable or use a GDAL_VERSION environment variable.
—————————————-
WARNING: Discarding https://files.pythonhosted.org/packages/94/7f/e288db1ad63d759d494c30caae34f865e0c6927588c490705e91b7134193/Fiona-1.8.8.tar.gz#sha256=711c3be73203b37812992089445a1e4e9d3d6b64e667389f7b15406e15a91e83 (from https://pypi.org/simple/fiona/). Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
Using cached Fiona-1.8.7.tar.gz (1.7 MB)
ERROR: Command errored out with exit status 1:
command: ‘C:\ProgramData\Anaconda3\envs\cnmaps\python.exe’ -c ‘import io, os, sys, setuptools, tokenize; sys.argv[0] = ‘”‘”‘C:\\Users\\HEJIAS~1\\AppData\\Local\\Temp\\pip-install-j754abo7\\fiona_fd56a60061294a4580bf5f94fec787ae\\setup.py'”‘”‘; __file__='”‘”‘C:\\Users\\HEJIAS~1\\AppData\\Local\\Temp\\pip-install-j754abo7\\fiona_fd56a60061294a4580bf5f94fec787ae\\setup.py'”‘”‘;f = getattr(tokenize, ‘”‘”‘open'”‘”‘, open)(__file__) if os.path.exists(__file__) else io.StringIO(‘”‘”‘from setuptools import setup; setup()'”‘”‘);code = f.read().replace(‘”‘”‘\r\n'”‘”‘, ‘”‘”‘\n'”‘”‘);f.close();exec(compile(code, __file__, ‘”‘”‘exec'”‘”‘))’ egg_info –egg-base ‘C:\Users\HEJIAS~1\AppData\Local\Temp\pip-pip-egg-info-12j89pyp’
cwd: C:\Users\HEJIAS~1\AppData\Local\Temp\pip-install-j754abo7\fiona_fd56a60061294a4580bf5f94fec787ae\
Complete output (1 lines):
A GDAL API version must be specified. Provide a path to gdal-config using a GDAL_CONFIG environment variable or use a GDAL_VERSION environment variable.
—————————————-
WARNING: Discarding https://files.pythonhosted.org/packages/78/62/daafd070aebefa639df247705b97f13f7cfad43895581b5cae41bd886709/Fiona-1.8.7.tar.gz#sha256=a55a23615bad3e142d4e4cda97bb5de83c778a80049222e9dffae93c13b5cf93 (from https://pypi.org/simple/fiona/). Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
Using cached Fiona-1.8.6.tar.gz (1.7 MB)
ERROR: Command errored out with exit status 1:
command: ‘C:\ProgramData\Anaconda3\envs\cnmaps\python.exe’ -c ‘import io, os, sys, setuptools, tokenize; sys.argv[0] = ‘”‘”‘C:\\Users\\HEJIAS~1\\AppData\\Local\\Temp\\pip-install-j754abo7\\fiona_4315017b2a574f338a9d4e50e64b61dd\\setup.py'”‘”‘; __file__='”‘”‘C:\\Users\\HEJIAS~1\\AppData\\Local\\Temp\\pip-install-j754abo7\\fiona_4315017b2a574f338a9d4e50e64b61dd\\setup.py'”‘”‘;f = getattr(tokenize, ‘”‘”‘open'”‘”‘, open)(__file__) if os.path.exists(__file__) else io.StringIO(‘”‘”‘from setuptools import setup; setup()'”‘”‘);code = f.read().replace(‘”‘”‘\r\n'”‘”‘, ‘”‘”‘\n'”‘”‘);f.close();exec(compile(code, __file__, ‘”‘”‘exec'”‘”‘))’ egg_info –egg-base ‘C:\Users\HEJIAS~1\AppData\Local\Temp\pip-pip-egg-info-l70b3ocr’
cwd: C:\Users\HEJIAS~1\AppData\Local\Temp\pip-install-j754abo7\fiona_4315017b2a574f338a9d4e50e64b61dd\
Complete output (1 lines):
A GDAL API version must be specified. Provide a path to gdal-config using a GDAL_CONFIG environment variable or use a GDAL_VERSION environment variable.
—————————————-
WARNING: Discarding https://files.pythonhosted.org/packages/41/9d/63696e7b1de42aad294d4781199a408bec593d8fdb80a2b4a788c911a33b/Fiona-1.8.6.tar.gz#sha256=fa31dfe8855b9cd0b128b47a4df558f1b8eda90d2181bff1dd9854e5556efb3e (from https://pypi.org/simple/fiona/). Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
Using cached Fiona-1.8.5.tar.gz (1.7 MB)
ERROR: Command errored out with exit status 1:
command: ‘C:\ProgramData\Anaconda3\envs\cnmaps\python.exe’ -c ‘import io, os, sys, setuptools, tokenize; sys.argv[0] = ‘”‘”‘C:\\Users\\HEJIAS~1\\AppData\\Local\\Temp\\pip-install-j754abo7\\fiona_ab8cd0fcf97e450195275e55157adb60\\setup.py'”‘”‘; __file__='”‘”‘C:\\Users\\HEJIAS~1\\AppData\\Local\\Temp\\pip-install-j754abo7\\fiona_ab8cd0fcf97e450195275e55157adb60\\setup.py'”‘”‘;f = getattr(tokenize, ‘”‘”‘open'”‘”‘, open)(__file__) if os.path.exists(__file__) else io.StringIO(‘”‘”‘from setuptools import setup; setup()'”‘”‘);code = f.read().replace(‘”‘”‘\r\n'”‘”‘, ‘”‘”‘\n'”‘”‘);f.close();exec(compile(code, __file__, ‘”‘”‘exec'”‘”‘))’ egg_info –egg-base ‘C:\Users\HEJIAS~1\AppData\Local\Temp\pip-pip-egg-info-vc_czdil’
cwd: C:\Users\HEJIAS~1\AppData\Local\Temp\pip-install-j754abo7\fiona_ab8cd0fcf97e450195275e55157adb60\
Complete output (1 lines):
A GDAL API version must be specified. Provide a path to gdal-config using a GDAL_CONFIG environment variable or use a GDAL_VERSION environment variable.
—————————————-
WARNING: Discarding https://files.pythonhosted.org/packages/7b/af/1c2c83c4a8363a4ce9fea817b1910b5e071bed012e18257faa2a0ab3cfe7/Fiona-1.8.5.tar.gz#sha256=4f5cc2d449edbbf693c83e24cdada72de7c41297383d16fcc92387eb445e9d35 (from https://pypi.org/simple/fiona/). Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
Using cached Fiona-1.8.4.tar.gz (1.1 MB)
ERROR: Command errored out with exit status 1:
command: ‘C:\ProgramData\Anaconda3\envs\cnmaps\python.exe’ -c ‘import io, os, sys, setuptools, tokenize; sys.argv[0] = ‘”‘”‘C:\\Users\\HEJIAS~1\\AppData\\Local\\Temp\\pip-install-j754abo7\\fiona_7520403ede8d4ef4bca9634187be5983\\setup.py'”‘”‘; __file__='”‘”‘C:\\Users\\HEJIAS~1\\AppData\\Local\\Temp\\pip-install-j754abo7\\fiona_7520403ede8d4ef4bca9634187be5983\\setup.py'”‘”‘;f = getattr(tokenize, ‘”‘”‘open'”‘”‘, open)(__file__) if os.path.exists(__file__) else io.StringIO(‘”‘”‘from setuptools import setup; setup()'”‘”‘);code = f.read().replace(‘”‘”‘\r\n'”‘”‘, ‘”‘”‘\n'”‘”‘);f.close();exec(compile(code, __file__, ‘”‘”‘exec'”‘”‘))’ egg_info –egg-base ‘C:\Users\HEJIAS~1\AppData\Local\Temp\pip-pip-egg-info-ss6bd1c7’
cwd: C:\Users\HEJIAS~1\AppData\Local\Temp\pip-install-j754abo7\fiona_7520403ede8d4ef4bca9634187be5983\
Complete output (1 lines):
A GDAL API version must be specified. Provide a path to gdal-config using a GDAL_CONFIG environment variable or use a GDAL_VERSION environment variable.
—————————————-
WARNING: Discarding https://files.pythonhosted.org/packages/3a/16/84960540e9fce61d767fd2f0f1d95f4c63e99ab5d8fddc308e8b51b059b8/Fiona-1.8.4.tar.gz#sha256=aec9ab2e3513c9503ec123b1a8573bee55fc6a66e2ac07088c3376bf6738a424 (from https://pypi.org/simple/fiona/). Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
Using cached Fiona-1.8.3.tar.gz (1.1 MB)
ERROR: Command errored out with exit status 1:
command: ‘C:\ProgramData\Anaconda3\envs\cnmaps\python.exe’ -c ‘import io, os, sys, setuptools, tokenize; sys.argv[0] = ‘”‘”‘C:\\Users\\HEJIAS~1\\AppData\\Local\\Temp\\pip-install-j754abo7\\fiona_d73343f691eb41bfbc1fb39509212985\\setup.py'”‘”‘; __file__='”‘”‘C:\\Users\\HEJIAS~1\\AppData\\Local\\Temp\\pip-install-j754abo7\\fiona_d73343f691eb41bfbc1fb39509212985\\setup.py'”‘”‘;f = getattr(tokenize, ‘”‘”‘open'”‘”‘, open)(__file__) if os.path.exists(__file__) else io.StringIO(‘”‘”‘from setuptools import setup; setup()'”‘”‘);code = f.read().replace(‘”‘”‘\r\n'”‘”‘, ‘”‘”‘\n'”‘”‘);f.close();exec(compile(code, __file__, ‘”‘”‘exec'”‘”‘))’ egg_info –egg-base ‘C:\Users\HEJIAS~1\AppData\Local\Temp\pip-pip-egg-info-2j8p6o_w’
cwd: C:\Users\HEJIAS~1\AppData\Local\Temp\pip-install-j754abo7\fiona_d73343f691eb41bfbc1fb39509212985\
Complete output (1 lines):
A GDAL API version must be specified. Provide a path to gdal-config using a GDAL_CONFIG environment variable or use a GDAL_VERSION environment variable.
—————————————-
WARNING: Discarding https://files.pythonhosted.org/packages/46/d1/fcdb32513a03abfde0d97fd9782ce0f8cc0540fa6c6ce783e87b94064964/Fiona-1.8.3.tar.gz#sha256=3e831100a23c3b6cd32b98baf0c9e2119d909b44a5cf4533d3625f61dcf2d2b1 (from https://pypi.org/simple/fiona/). Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
Using cached Fiona-1.8.2.tar.gz (1.2 MB)
ERROR: Command errored out with exit status 1:
command: ‘C:\ProgramData\Anaconda3\envs\cnmaps\python.exe’ -c ‘import io, os, sys, setuptools, tokenize; sys.argv[0] = ‘”‘”‘C:\\Users\\HEJIAS~1\\AppData\\Local\\Temp\\pip-install-j754abo7\\fiona_bc00a740340e429bbf02b616d69ded81\\setup.py'”‘”‘; __file__='”‘”‘C:\\Users\\HEJIAS~1\\AppData\\Local\\Temp\\pip-install-j754abo7\\fiona_bc00a740340e429bbf02b616d69ded81\\setup.py'”‘”‘;f = getattr(tokenize, ‘”‘”‘open'”‘”‘, open)(__file__) if os.path.exists(__file__) else io.StringIO(‘”‘”‘from setuptools import setup; setup()'”‘”‘);code = f.read().replace(‘”‘”‘\r\n'”‘”‘, ‘”‘”‘\n'”‘”‘);f.close();exec(compile(code, __file__, ‘”‘”‘exec'”‘”‘))’ egg_info –egg-base ‘C:\Users\HEJIAS~1\AppData\Local\Temp\pip-pip-egg-info-q8na534f’
cwd: C:\Users\HEJIAS~1\AppData\Local\Temp\pip-install-j754abo7\fiona_bc00a740340e429bbf02b616d69ded81\
Complete output (1 lines):
A GDAL API version must be specified. Provide a path to gdal-config using a GDAL_CONFIG environment variable or use a GDAL_VERSION environment variable.
—————————————-
WARNING: Discarding https://files.pythonhosted.org/packages/25/50/0466d5d83e1859c5ca38351ee932d64cc5635f9d4dad522879e58f4b0018/Fiona-1.8.2.tar.gz#sha256=4c6419b7ac29136708029f6a44b4ccd458735a4d241016c7b1bab41685c08d8f (from https://pypi.org/simple/fiona/). Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
Using cached Fiona-1.8.1.tar.gz (1.1 MB)
ERROR: Command errored out with exit status 1:
command: ‘C:\ProgramData\Anaconda3\envs\cnmaps\python.exe’ -c ‘import io, os, sys, setuptools, tokenize; sys.argv[0] = ‘”‘”‘C:\\Users\\HEJIAS~1\\AppData\\Local\\Temp\\pip-install-j754abo7\\fiona_47d0f64b08084f7da5bbd164286db9e1\\setup.py'”‘”‘; __file__='”‘”‘C:\\Users\\HEJIAS~1\\AppData\\Local\\Temp\\pip-install-j754abo7\\fiona_47d0f64b08084f7da5bbd164286db9e1\\setup.py'”‘”‘;f = getattr(tokenize, ‘”‘”‘open'”‘”‘, open)(__file__) if os.path.exists(__file__) else io.StringIO(‘”‘”‘from setuptools import setup; setup()'”‘”‘);code = f.read().replace(‘”‘”‘\r\n'”‘”‘, ‘”‘”‘\n'”‘”‘);f.close();exec(compile(code, __file__, ‘”‘”‘exec'”‘”‘))’ egg_info –egg-base ‘C:\Users\HEJIAS~1\AppData\Local\Temp\pip-pip-egg-info-9mkp6sss’
cwd: C:\Users\HEJIAS~1\AppData\Local\Temp\pip-install-j754abo7\fiona_47d0f64b08084f7da5bbd164286db9e1\
Complete output (1 lines):
A GDAL API version must be specified. Provide a path to gdal-config using a GDAL_CONFIG environment variable or use a GDAL_VERSION environment variable.
—————————————-
WARNING: Discarding https://files.pythonhosted.org/packages/3e/5f/0c6704efeea2ff3fba7f54cc6ec38070157f21bc1cffa7bdfa7c9f6b8f7a/Fiona-1.8.1.tar.gz#sha256=4c34bb4c5cd788aaf14e5484c3b7de407b1a8a7c7b2d29bbb2e8b37931e83b8d (from https://pypi.org/simple/fiona/). Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
Using cached Fiona-1.8.0.tar.gz (1.4 MB)
ERROR: Command errored out with exit status 1:
command: ‘C:\ProgramData\Anaconda3\envs\cnmaps\python.exe’ -c ‘import io, os, sys, setuptools, tokenize; sys.argv[0] = ‘”‘”‘C:\\Users\\HEJIAS~1\\AppData\\Local\\Temp\\pip-install-j754abo7\\fiona_76cbf252142d43f4a8cf6a08fe41f899\\setup.py'”‘”‘; __file__='”‘”‘C:\\Users\\HEJIAS~1\\AppData\\Local\\Temp\\pip-install-j754abo7\\fiona_76cbf252142d43f4a8cf6a08fe41f899\\setup.py'”‘”‘;f = getattr(tokenize, ‘”‘”‘open'”‘”‘, open)(__file__) if os.path.exists(__file__) else io.StringIO(‘”‘”‘from setuptools import setup; setup()'”‘”‘);code = f.read().replace(‘”‘”‘\r\n'”‘”‘, ‘”‘”‘\n'”‘”‘);f.close();exec(compile(code, __file__, ‘”‘”‘exec'”‘”‘))’ egg_info –egg-base ‘C:\Users\HEJIAS~1\AppData\Local\Temp\pip-pip-egg-info-ko_gbkwg’
cwd: C:\Users\HEJIAS~1\AppData\Local\Temp\pip-install-j754abo7\fiona_76cbf252142d43f4a8cf6a08fe41f899\
Complete output (1 lines):
A GDAL API version must be specified. Provide a path to gdal-config using a GDAL_CONFIG environment variable or use a GDAL_VERSION environment variable.
—————————————-
WARNING: Discarding https://files.pythonhosted.org/packages/2a/bd/c1efc2680f338e5941121c776d6323af6b9698ac739e22ba523cee348a7f/Fiona-1.8.0.tar.gz#sha256=20141a9ece06daa7bb4333fba640c2fe39a49f8aca5492d1da8595d41e91844a (from https://pypi.org/simple/fiona/). Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
Collecting geopandas
Using cached geopandas-0.8.2-py2.py3-none-any.whl (962 kB)
Collecting fiona
Using cached Fiona-1.7.13.tar.gz (731 kB)
Collecting pytz>=2017.2
Using cached pytz-2022.1-py2.py3-none-any.whl (503 kB)
Requirement already satisfied: python-dateutil>=2.7.3 in c:\programdata\anaconda3\envs\cnmaps\lib\site-packages (from pandas>=0.24.0->geopandas->cnmaps) (2.8.2)
Requirement already satisfied: certifi in c:\programdata\anaconda3\envs\cnmaps\lib\site-packages (from pyproj>=2.2.0->geopandas->cnmaps) (2021.5.30)
Requirement already satisfied: six>=1.5 in c:\programdata\anaconda3\envs\cnmaps\lib\site-packages (from python-dateutil>=2.7.3->pandas>=0.24.0->geopandas->cnmaps) (1.16.0)
Collecting cligj>=0.4
Using cached cligj-0.7.2-py3-none-any.whl (7.1 kB)
Collecting click-plugins
Using cached click_plugins-1.1.1-py2.py3-none-any.whl (7.5 kB)
Collecting munch
Using cached munch-2.5.0-py2.py3-none-any.whl (10 kB)
Collecting click>=4.0
Using cached click-8.0.4-py3-none-any.whl (97 kB)
Collecting colorama
Using cached colorama-0.4.4-py2.py3-none-any.whl (16 kB)
Collecting importlib-metadata
Using cached importlib_metadata-4.8.3-py3-none-any.whl (17 kB)
Collecting zipp>=0.5
Using cached zipp-3.6.0-py3-none-any.whl (5.3 kB)
Collecting typing-extensions>=3.6.4
Using cached typing_extensions-4.1.1-py3-none-any.whl (26 kB)
Requirement already satisfied: kiwisolver>=1.0.1 in c:\programdata\anaconda3\envs\cnmaps\lib\site-packages (from matplotlib->cnmaps) (1.3.1)
Requirement already satisfied: pillow>=6.2.0 in c:\programdata\anaconda3\envs\cnmaps\lib\site-packages (from matplotlib->cnmaps) (8.3.2)
Requirement already satisfied: cycler>=0.10 in c:\programdata\anaconda3\envs\cnmaps\lib\site-packages (from matplotlib->cnmaps) (0.11.0)
Requirement already satisfied: pyparsing!=2.0.4,!=2.1.2,!=2.1.6,>=2.0.3 in c:\programdata\anaconda3\envs\cnmaps\lib\site-packages (from matplotlib->cnmaps) (3.0.8)
Collecting cftime
Using cached cftime-1.6.0-cp36-none-win_amd64.whl (153 kB)
Building wheels for collected packages: fiona
Building wheel for fiona (setup.py) … error
ERROR: Command errored out with exit status 1:
command: ‘C:\ProgramData\Anaconda3\envs\cnmaps\python.exe’ -u -c ‘import io, os, sys, setuptools, tokenize; sys.argv[0] = ‘”‘”‘C:\\Users\\HEJIAS~1\\AppData\\Local\\Temp\\pip-install-j754abo7\\fiona_a1dc61563ce24cb0b26a8a800600e784\\setup.py'”‘”‘; __file__='”‘”‘C:\\Users\\HEJIAS~1\\AppData\\Local\\Temp\\pip-install-j754abo7\\fiona_a1dc61563ce24cb0b26a8a800600e784\\setup.py'”‘”‘;f = getattr(tokenize, ‘”‘”‘open'”‘”‘, open)(__file__) if os.path.exists(__file__) else io.StringIO(‘”‘”‘from setuptools import setup; setup()'”‘”‘);code = f.read().replace(‘”‘”‘\r\n'”‘”‘, ‘”‘”‘\n'”‘”‘);f.close();exec(compile(code, __file__, ‘”‘”‘exec'”‘”‘))’ bdist_wheel -d ‘C:\Users\HEJIAS~1\AppData\Local\Temp\pip-wheel-v5fmuqwl’
cwd: C:\Users\HEJIAS~1\AppData\Local\Temp\pip-install-j754abo7\fiona_a1dc61563ce24cb0b26a8a800600e784\
Complete output (48 lines):
C:\ProgramData\Anaconda3\envs\cnmaps\lib\distutils\dist.py:261: UserWarning: Unknown distribution option: ‘metadata_version’
warnings.warn(msg)
C:\ProgramData\Anaconda3\envs\cnmaps\lib\distutils\dist.py:261: UserWarning: Unknown distribution option: ‘requires_python’
warnings.warn(msg)
C:\ProgramData\Anaconda3\envs\cnmaps\lib\distutils\dist.py:261: UserWarning: Unknown distribution option: ‘requires_external’
warnings.warn(msg)
running bdist_wheel
running build
running build_py
creating build
creating build\lib.win-amd64-3.6
creating build\lib.win-amd64-3.6\fiona
copying .\fiona\collection.py -> build\lib.win-amd64-3.6\fiona
copying .\fiona\compat.py -> build\lib.win-amd64-3.6\fiona
copying .\fiona\crs.py -> build\lib.win-amd64-3.6\fiona
copying .\fiona\drvsupport.py -> build\lib.win-amd64-3.6\fiona
copying .\fiona\errors.py -> build\lib.win-amd64-3.6\fiona
copying .\fiona\inspector.py -> build\lib.win-amd64-3.6\fiona
copying .\fiona\rfc3339.py -> build\lib.win-amd64-3.6\fiona
copying .\fiona\tool.py -> build\lib.win-amd64-3.6\fiona
copying .\fiona\transform.py -> build\lib.win-amd64-3.6\fiona
copying .\fiona\__init__.py -> build\lib.win-amd64-3.6\fiona
creating build\lib.win-amd64-3.6\fiona\fio
copying .\fiona\fio\bounds.py -> build\lib.win-amd64-3.6\fiona\fio
copying .\fiona\fio\calc.py -> build\lib.win-amd64-3.6\fiona\fio
copying .\fiona\fio\cat.py -> build\lib.win-amd64-3.6\fiona\fio
copying .\fiona\fio\collect.py -> build\lib.win-amd64-3.6\fiona\fio
copying .\fiona\fio\distrib.py -> build\lib.win-amd64-3.6\fiona\fio
copying .\fiona\fio\dump.py -> build\lib.win-amd64-3.6\fiona\fio
copying .\fiona\fio\env.py -> build\lib.win-amd64-3.6\fiona\fio
copying .\fiona\fio\filter.py -> build\lib.win-amd64-3.6\fiona\fio
copying .\fiona\fio\helpers.py -> build\lib.win-amd64-3.6\fiona\fio
copying .\fiona\fio\info.py -> build\lib.win-amd64-3.6\fiona\fio
copying .\fiona\fio\insp.py -> build\lib.win-amd64-3.6\fiona\fio
copying .\fiona\fio\load.py -> build\lib.win-amd64-3.6\fiona\fio
copying .\fiona\fio\ls.py -> build\lib.win-amd64-3.6\fiona\fio
copying .\fiona\fio\main.py -> build\lib.win-amd64-3.6\fiona\fio
copying .\fiona\fio\options.py -> build\lib.win-amd64-3.6\fiona\fio
copying .\fiona\fio\__init__.py -> build\lib.win-amd64-3.6\fiona\fio
running build_ext
building ‘fiona._transform’ extension
creating build\temp.win-amd64-3.6
creating build\temp.win-amd64-3.6\Release
creating build\temp.win-amd64-3.6\Release\fiona
C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -IC:\ProgramData\Anaconda3\envs\cnmaps\include -IC:\ProgramData\Anaconda3\envs\cnmaps\include “-IC:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\include” “-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um” “-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\ucrt” “-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\shared” “-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um” “-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\winrt” “-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\cppwinrt” -IC:\MinGW\include /EHsc /Tpfiona/_transform.cpp /Fobuild\temp.win-amd64-3.6\Release\fiona/_transform.obj
_transform.cpp
fiona/_transform.cpp(606): fatal error C1083: 无法打开包括文件: “cpl_conv.h”: No such file or directory
error: command ‘C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\BuildTools\\VC\\Tools\\MSVC\\14.29.30133\\bin\\HostX86\\x64\\cl.exe’ failed with exit status 2
—————————————-
ERROR: Failed building wheel for fiona
Running setup.py clean for fiona
Failed to build fiona
Installing collected packages: zipp, typing-extensions, importlib-metadata, colorama, click, pytz, munch, cligj, click-plugins, pyproj, pandas, fiona, cftime, netCDF4, geopandas, cnmaps
Running setup.py install for fiona … error
ERROR: Command errored out with exit status 1:
command: ‘C:\ProgramData\Anaconda3\envs\cnmaps\python.exe’ -u -c ‘import io, os, sys, setuptools, tokenize; sys.argv[0] = ‘”‘”‘C:\\Users\\HEJIAS~1\\AppData\\Local\\Temp\\pip-install-j754abo7\\fiona_a1dc61563ce24cb0b26a8a800600e784\\setup.py'”‘”‘; __file__='”‘”‘C:\\Users\\HEJIAS~1\\AppData\\Local\\Temp\\pip-install-j754abo7\\fiona_a1dc61563ce24cb0b26a8a800600e784\\setup.py'”‘”‘;f = getattr(tokenize, ‘”‘”‘open'”‘”‘, open)(__file__) if os.path.exists(__file__) else io.StringIO(‘”‘”‘from setuptools import setup; setup()'”‘”‘);code = f.read().replace(‘”‘”‘\r\n'”‘”‘, ‘”‘”‘\n'”‘”‘);f.close();exec(compile(code, __file__, ‘”‘”‘exec'”‘”‘))’ install –record ‘C:\Users\HEJIAS~1\AppData\Local\Temp\pip-record-5lnnnz9y\install-record.txt’ –single-version-externally-managed –compile –install-headers ‘C:\ProgramData\Anaconda3\envs\cnmaps\Include\fiona’
cwd: C:\Users\HEJIAS~1\AppData\Local\Temp\pip-install-j754abo7\fiona_a1dc61563ce24cb0b26a8a800600e784\
Complete output (18 lines):
C:\ProgramData\Anaconda3\envs\cnmaps\lib\distutils\dist.py:261: UserWarning: Unknown distribution option: ‘metadata_version’
warnings.warn(msg)
C:\ProgramData\Anaconda3\envs\cnmaps\lib\distutils\dist.py:261: UserWarning: Unknown distribution option: ‘requires_python’
warnings.warn(msg)
C:\ProgramData\Anaconda3\envs\cnmaps\lib\distutils\dist.py:261: UserWarning: Unknown distribution option: ‘requires_external’
warnings.warn(msg)
running install
running build
running build_py
running build_ext
building ‘fiona._transform’ extension
creating build\temp.win-amd64-3.6
creating build\temp.win-amd64-3.6\Release
creating build\temp.win-amd64-3.6\Release\fiona
C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -IC:\ProgramData\Anaconda3\envs\cnmaps\include -IC:\ProgramData\Anaconda3\envs\cnmaps\include “-IC:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\include” “-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um” “-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\ucrt” “-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\shared” “-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um” “-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\winrt” “-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\cppwinrt” -IC:\MinGW\include /EHsc /Tpfiona/_transform.cpp /Fobuild\temp.win-amd64-3.6\Release\fiona/_transform.obj
_transform.cpp
fiona/_transform.cpp(606): fatal error C1083: 无法打开包括文件: “cpl_conv.h”: No such file or directory
error: command ‘C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\BuildTools\\VC\\Tools\\MSVC\\14.29.30133\\bin\\HostX86\\x64\\cl.exe’ failed with exit status 2
—————————————-
ERROR: Command errored out with exit status 1: ‘C:\ProgramData\Anaconda3\envs\cnmaps\python.exe’ -u -c ‘import io, os, sys, setuptools, tokenize; sys.argv[0] = ‘”‘”‘C:\\Users\\HEJIAS~1\\AppData\\Local\\Temp\\pip-install-j754abo7\\fiona_a1dc61563ce24cb0b26a8a800600e784\\setup.py'”‘”‘; __file__='”‘”‘C:\\Users\\HEJIAS~1\\AppData\\Local\\Temp\\pip-install-j754abo7\\fiona_a1dc61563ce24cb0b26a8a800600e784\\setup.py'”‘”‘;f = getattr(tokenize, ‘”‘”‘open'”‘”‘, open)(__file__) if os.path.exists(__file__) else io.StringIO(‘”‘”‘from setuptools import setup; setup()'”‘”‘);code = f.read().replace(‘”‘”‘\r\n'”‘”‘, ‘”‘”‘\n'”‘”‘);f.close();exec(compile(code, __file__, ‘”‘”‘exec'”‘”‘))’ install –record ‘C:\Users\HEJIAS~1\AppData\Local\Temp\pip-record-5lnnnz9y\install-record.txt’ –single-version-externally-managed –compile –install-headers ‘C:\ProgramData\Anaconda3\envs\cnmaps\Include\fiona’ Check the logs for full command output.
(cnmaps) C:\WINDOWS\system32>
目前看是安装依赖时出现了问题,具体原因目前看不出来,我已经在GitHub仓库的Issue里记录了,链接:https://github.com/Clarmy/cnmaps/issues/27,后续可以持续关注一下,若修复会在下一版本中更新。
我的cnmap1.0.1可以安装,但是运行时报错。Python 3.7.3 (default, Apr 24 2019, 15:29:51) [MSC v.1915 64 bit (AMD64)]
Type “copyright”, “credits” or “license” for more information.
IPython 7.6.1 — An enhanced Interactive Python.
Traceback (most recent call last):
File “”, line 1, in
runfile(‘D:/pythonProject/地形图.py’, wdir=’D:/pythonProject’)
File “C:\Users\zxkcl\Anaconda3\lib\site-packages\spyder_kernels\customize\spydercustomize.py”, line 827, in runfile
execfile(filename, namespace)
File “C:\Users\zxkcl\Anaconda3\lib\site-packages\spyder_kernels\customize\spydercustomize.py”, line 110, in execfile
exec(compile(f.read(), filename, ‘exec’), namespace)
File “D:/pythonProject/地形图.py”, line 13, in
from cnmaps import get_map, draw_map
ImportError: cannot import name ‘get_map’ from ‘cnmaps’ (C:\Users\zxkcl\Anaconda3\lib\site-packages\cnmaps\__init__.py)
代码完全按照大神来的,仅更改数据路径
包升级以后get_map方法被弃用了,如果要跑这个文章里的代码需要把cnmaps降级到0.2.1,pip install cnmaps==0.2.1
runfile(‘D:/pythonProject/地形图.py’, wdir=’D:/pythonProject’)
Traceback (most recent call last):
File “”, line 1, in
runfile(‘D:/pythonProject/地形图.py’, wdir=’D:/pythonProject’)
File “C:\Users\zxkcl\Anaconda3\lib\site-packages\spyder_kernels\customize\spydercustomize.py”, line 827, in runfile
execfile(filename, namespace)
File “C:\Users\zxkcl\Anaconda3\lib\site-packages\spyder_kernels\customize\spydercustomize.py”, line 110, in execfile
exec(compile(f.read(), filename, ‘exec’), namespace)
File “D:/pythonProject/地形图.py”, line 24, in
vert_exag=0.5, dx=10, dy=10, fraction=1.5, vmin=-2300)
File “C:\Users\zxkcl\Anaconda3\lib\site-packages\matplotlib\colors.py”, line 1850, in shade
fraction=fraction, **kwargs)
File “C:\Users\zxkcl\Anaconda3\lib\site-packages\matplotlib\colors.py”, line 1921, in shade_rgb
mask = intensity.mask[…, 0]
IndexError: invalid index to scalar variable.
大神好,我用o.2.1又出现了这样的报错,不知道怎么回事啊,