Alexjandro Manjon
Alexjandro Manjon

Reputation: 53

Basemap is not getting installed

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

Answers (2)

Azam
Azam

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

indraneel
indraneel

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

Related Questions