Reputation: 53
I want to plot a map using Basemap. When I run
from mpl_toolkits.basemap import Basemap
I get
ModuleNotFoundError: No module named 'mpl_toolkits.basemap'
I tried to do
conda install -c conda-forge basemap-data-hires
but still getting the same no module thing as before, I did try the things from this post ModuleNotFoundError: No module named 'mpl_toolkits.basemap' but still no results
Upvotes: 1
Views: 2201
Reputation: 147
you have to install basemap from this command; conda install -c conda-forge basemap, let the system find the compatible version with your machine, only then you should install basemap-data-hires. One thing for sure, you need to set up path environment and set as PROJ_LIB
Upvotes: 0
Reputation: 66
Open your terminal and try this -
python -m pip install basemap
If working on a notebook, try using -
!python -m pip install basemap
Refer to https://github.com/matplotlib/basemap#installation for more installationrelated support.
Upvotes: 1