Page 1 of 1

Installing the Basemap Module on Ubuntu Linux 20.04

Posted: Wed Feb 10, 2021 8:40 pm
by Eli
There are several ways to install the basemap module of mpl_toolkits in Python. Pip install may succeed but you are likely to encounter the error message "ModuleNotFoundError: No module named mpl_toolkits.basemap" when importing the module: "from mpl_toolkits.basemap import Basemap".

A working basemap installation may proceed as follows:

  1. sudo apt-get install libgeos-3.8.0
  2. sudo apt-get install libgeos-dev
  3. pip install https://github.com/matplotlib/basemap/archive/master.zip


Or via conda:

  1. conda install basemap