Wayne Angel
Wayne Angel

Reputation: 71

basemap ImportError: No module named 'mpl_toolkits.basemap'

from mpl_toolkits.basemap import Basemap  

gives

ImportError: No module named 'mpl_toolkits.basemap'  

I installed basemap with conda

wayne@dors:~$ conda install basemap
Solving environment: done

# All requested packages already installed.  

I am running ubuntu 15.04, Python3.4, matplotlib 2.1.1, numpy 1.8.2
How do I fix?

Upvotes: 6

Views: 24226

Answers (3)

Celio Marcos
Celio Marcos

Reputation: 151

try install basemap from source

pip install https://github.com/matplotlib/basemap/archive/master.zip

Upvotes: 0

ConfusedMan
ConfusedMan

Reputation: 582

Try to install it with this command:

conda install -c conda-forge basemap

"Only the 'crude' and 'low', resolution datasets are installed by default" .You may need to install the following for high resolution:

conda install -c conda-forge basemap-data-hires

Upvotes: 10

AnythingIsFine
AnythingIsFine

Reputation: 1807

I think you need to install from source, not via conda, as per the docs :

https://matplotlib.org/basemap/users/installing.html

Upvotes: 0

Related Questions