我是一个使用python制作/绘制地图的新手,试图跟随这个博客来生成一个世界地图(http://sciblogs.co.nz/seeing-data/2011/08/12/plotting-geographic-数据上-A-世界地图与 – 蟒/).在这里遇到了一些事情:
>安装底图(Matplotlib扩展名用于绘制地理投影数据).
from mpl_toolkits.basemap import Basemap
Traceback (most recent call last):
File "geos_demo.py", line 1, in
from mpl_toolkits.basemap import Basemap
ImportError: No module named mpl_toolkits.basemap
我使用的是Python 2.7.1和Mac OS 10.7.4.请让我知道,如果我可以提供更多的信息,并真正感谢社区在这里的任何指导!谢谢!
[1]
from shapely.geometry import Point
Traceback (most recent call last): File "", line 1, in
File "/Users/Desktop/python/ENV/lib/python2.7/site-packages/shapely/geometry/__init__.py", line 4, in
from geo import box, shape, asShape, mapping
File "/Users/Desktop/python/ENV/lib/python2.7/site-packages/shapely/geometry/geo.py", line 5, in
from point import Point, asPoint
File "/Users/Desktop/python/ENV/lib/python2.7/site-packages/shapely/geometry/point.py", line 7, in
from shapely.coords import required
File "/Users/Desktop/python/ENV/lib/python2.7/site-packages/shapely/coords.py", line 8, in
from shapely.geos import lgeos
File "/Users/Desktop/python/ENV/lib/python2.7/site-packages/shapely/geos.py", line 59, in
_lgeos = load_dll('geos_c', fallbacks=alt_paths)
File "/Users/Desktop/python/ENV/lib/python2.7/site-packages/shapely/geos.py", line 44, in load_dll
libname, fallbacks or []))
OSError: Could not find library geos_c or load any of its variants ['/Library/Frameworks/GEOS.framework/Versions/Current/GEOS', '/opt/local/lib/libgeos_c.dylib']