OSError geos_c could not be found when Installing Shapely

前端 未结 6 565
星月不相逢
星月不相逢 2020-12-11 00:31

I\'m a newbie to making/plotting on maps with python, been trying to follow this blogpost to generate a world map (http://sciblogs.co.nz/seeing-data/2011/08/12/plotting-geog

6条回答
  •  失恋的感觉
    2020-12-11 01:12

    The problem seems to be that you haven't actually installed the required modules.

    Lines of Python code like

    from mpl_toolkits.basemap import Basemap
    

    Are import statements that tell your script to use modules (or other bits of Python code) that you need to have already installed.

    For each of the packages mentioned (NumPy, Matplotlib, Basemap) you will have to figure out how to install them on your system. In the case of NumPy and Matplotlib this can be complicated because they require compilation. For instance these are theNumpy instructions.

    If you just wanted to try playing with the instructions in that blog post then you could use a service like PythonAnywhere which has numpy, matplotlib, and basemap installed already. (disclaimer, I work on PythonAnywhere...)

提交回复
热议问题