basemap ImportError: No module named 'mpl_toolkits.basemap'

前端 未结 3 699
醉话见心
醉话见心 2021-01-05 15:42
from mpl_toolkits.basemap import Basemap  

gives

ImportError: No module named \'mpl_toolkits.basemap\'  

I inst

相关标签:
3条回答
  • 2021-01-05 16:33

    I think you need to install from source, not via conda, as per the docs :

    https://matplotlib.org/basemap/users/installing.html

    0 讨论(0)
  • 2021-01-05 16:38

    try install basemap from source

    pip install https://github.com/matplotlib/basemap/archive/master.zip
    
    0 讨论(0)
  • 2021-01-05 16:42

    Try to install it with this command:

    conda install -c conda-forge basemap
    

    "Only the 'crude' and 'low', resolution datasets are installed by default" .You may need to install the following for high resolution:

    conda install -c conda-forge basemap-data-hires
    
    0 讨论(0)
提交回复
热议问题