我的设备是Windows系统,64bit的架构;事先已经安装过OSM2GMNS并且可以解析从OSM上下载下来的osm文件;python版本是当初anaconda自带的,也没有另外开虚拟机,就准备一锅乱炖。
“依次安装rtree、gdal、fional 3个包”在装第三个包的时候遇到了报错,从pypi(Fiona · PyPI)上,与我的设备对应的只有tar.gz版本,pip的时候一直报错:
“ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.”以为是pip版本问题,根据在执行 pip install 时遇到错误:python setup.py egg_info ... - 知乎最近重新安装win10 64位专业版, 正好遇到python3.8发布,试了一下。结果jupyter都安装不了。。。心碎。 ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full comm…https://zhuanlan.zhihu.com/p/89858202https://zhuanlan.zhihu.com/p/89858202升级,无效。
“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.”一直搞不清楚是啥意思,跟据A GDAL API version must be specified. Provide a path to gdal-config using a GDAL_CONFIG environment_Micrasoft007的博客-CSDN博客问题描述:windows10系统下python3.7安装geopandas库时遇到如下问题 ERROR: Command errored out with exit status 1: command: 'd:\nap_venv\scripts\python.exe' -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\HM\\AppData\\Local\\Temp\\pip-install-62cmehttps://blog.csdn.net/Micrasoft007/article/details/112652700https://blog.csdn.net/Micrasoft007/article/details/112652700
修改了临时环境变量和环境变量,无效。
其他旁门左道说先装geopandas……啥的根本绕不开Fiona没装好的现状。(中间还经历了一段网络丢包的故障,把VPN关了就好了)
最后看到这篇,报错解决方法1:‘A GDAL API version must be specified.’_UQI-LIUWJ的博客-CSDN博客今天在用pip安装osmnx包的时候,报了如下的错误 Downloading Fiona-1.8.20.tar.gz (1.3 MB) |████████████████████████████████| 1.3 MB 1.3 MB/s ERROR: Command errored out with exit status 1: command: 'c:\users\16000\appdata\local\programs\python\python37\python.ehttps://blog.csdn.net/qq_40206371/article/details/120239760https://blog.csdn.net/qq_40206371/article/details/120239760感觉到不对劲了,丫的,有Fiona的轮子啊!https://www.lfd.uci.edu/~gohlke/pythonlibs/#fionahttps://www.lfd.uci.edu/~gohlke/pythonlibs/#fionahttps://www.lfd.uci.edu/~gohlke/pythonlibs/#fiona下载cp38,amd64的最新版本之后直接起飞。
安装geopandas也毫不费力:
osmnx也还算顺利:
后面摸索OSM/GIS-python还有啥坑大家再一起交流!