Installing the Basemap Module on Ubuntu Linux 20.04
Posted: Wed Feb 10, 2021 8:40 pm
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:
Or via conda:
A working basemap installation may proceed as follows:
- sudo apt-get install libgeos-3.8.0
- sudo apt-get install libgeos-dev
- pip install https://github.com/matplotlib/basemap/archive/master.zip
Or via conda:
- conda install basemap