1. Install the following libraries:
!apt-get install -q libgeos-3.5.0
!apt-get install -q libgeos-dev
!pip install -q https://github.com/matplotlib/basemap/archive/master.zip
2. Need to install downgraded version of pyroj to match the compatibiltiy with other libraries.
!pip install -q pyproj==1.9.6
3. Restart the runtime and don't execute step 1 and step 2 and import the libraries as:
from mpl_toolkits.basemap import Basemap
import matplotlib.pyplot as plt
%matplotlib inline
Comments
0 comments
Article is closed for comments.