1.Cannot import name 'CRS' from 'pyproj' for using the osmnx library
解决:卸载osmnx,重新下载旧版本osmnx
conda uninstall osmnx
pip install osmnx==0.11
2.安装旧版本过程中遇到问题:OSError: could not find or load spatialindex_c.dll
解决:缺乏Rtree包,参考文章http://www.cnblogs.com/yangzhang-home/p/5999812.html
1)这里 http://www.lfd.uci.edu/~gohlke/pythonlibs/#rtree 下载对应版本的Rtree的whl安装包,注意是python2.7还是3.5,注意电脑是32还是64位。可以放在电脑任意位置。
conda install setuptools --yes
2)确保电脑里已经安装了python中wheel这个包,没有的话这个可以直接在cmd中输入pip install wheel安装
3) 打开cmd,输入pip install D:\Rtree-0.9.4-cp37-cp37m-win_amd64.whl
安装完成