NetCDF and matplotlib basemap with Python 3
- Install the prerequisite packages with
sudo apt-get install python3-matplotlib python3-dev libnetcdf-dev libgeos-dev libhdf5-dev
- Download and extract NetCDF-Python and install it with
sudo python3 setup.py install
- Download and extract Matplotlib Basemap Toolkit
- If you try and install it, you will see the error
/usr/bin/ld: cannot find -lgeos
To avoid this, symlink thelibgeos
shared objectsudo ln -s /usr/lib/libgeos-3.4.2.so /usr/lib/libgeos.so
Then install as before usingsudo python3 setup.py install