Installing the Basemap Module on Ubuntu Linux 20.04

Post Reply
User avatar
Eli
Senior Expert Member
Reactions: 183
Posts: 5334
Joined: 9 years ago
Location: Tanzania
Has thanked: 75 times
Been thanked: 88 times
Contact:

#1

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

0
TSSFL -- A Creative Journey Towards Infinite Possibilities!
Post Reply
  • Similar Topics
    Replies
    Views
    Last post

Return to “Linux and Unix Based Operating Systems”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 1 guest