title: Basemap library using Anaconda Jupyter Notebooks - KeyError: PROJ_LIB
body: <p>I'm trying to install and import the Basemap library into my Jupyter Notebook, but this returns the following error:</p>
  
  <pre><code>KeyError: 'PROJ_LIB'
  </code></pre>
  
  <p>After some research online, I understand I'm to install Basemap on a separate environment in Anaconda. After creating a new environment and installing Basemap (as well as all other relevant libraries), I have activated the environment. But when importing Basemap I still receive the same KeyError.</p>
  
  <p>Here's what I did in my MacOS terminal:</p>
  
  <pre><code>conda create --name Py3.6 python=3.6 basemap
  source activate Py3.6
  conda upgrade proj4
  env | grep -i proj
  conda update --channel conda-forge proj4
  </code></pre>
  
  <p>Then in Jupyter Notebook I run the following:</p>
  
  <pre><code>from mpl_toolkits.basemap import Basemap
  </code></pre>
  
  <p>Can anyone tell me why this results in a KeyError?</p>