title: How can I install Basemap in Python 3 / Matplotlib 2 on Ubuntu 16.04?
body: <p>I tried</p>
  
  <pre><code>pip3 install basemap
  </code></pre>
  
  <p>but <a href="https://sourceforge.net/projects/matplotlib/files/matplotlib-toolkits/" rel="noreferrer">Basemap</a> seems not to be on PyPI.</p>
  
  <p>There is <a href="https://stackoverflow.com/q/18386132/562769">an old question</a> but it has no answer.</p>
  
  <h2>What I did</h2>
  
  <ol>
  <li>I downloaded basemap 1.07 (<a href="https://sourceforge.net/projects/matplotlib/files/matplotlib-toolkits/" rel="noreferrer">source</a>)</li>
  <li>Matplotlib 2, numpy 1.11, PIL, <code>python3-dev</code> is installed</li>
  </ol>
  
  <p>I'm not sure where / how to get GEOS (<code>libgeos-dev</code>?). I think I followed the README and it didn't show any errors, but when trying the first line of <a href="https://matplotlib.org/basemap/users/geography.html" rel="noreferrer">this</a></p>
  
  <pre><code>$ python3
  &gt;&gt;&gt; from mpl_toolkits.basemap import Basemap
  </code></pre>
  
  <p>I get</p>
  
  <pre><code>ImportError: libgeos-3.3.3.so: cannot open shared object file: No such file or directory
  </code></pre>
  
  <p>It is in</p>
  
  <pre><code>$ locate libgeos-3.3.3.so
  /home/math/Downloads/basemap-1.0.7/geos-3.3.3/src/.libs/libgeos-3.3.3.so
  /usr/local/lib/libgeos-3.3.3.so
  </code></pre>