Installing basemap
<p>There are some pretty helpful links in <a href="http://gnperdue.github.io/yak-shaving/osx/python/matplotlib/2014/05/01/basemap-toolkit.html" rel="nofollow">installing basemap</a> for python, however I seem to be encountering an issue towards the end of installation when trying to test if the installation has worked or not. I'm installing on a Mac.</p>

<p>The error message I'm seeing is: </p>

<pre><code>  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/locale.py", line 475, in _parse_localename
    raise ValueError, 'unknown locale: %s' % locale name
</code></pre>

<p>Admittedly I'm still not savvy with knowing my way around Macs and installing the anaconda suite took me a while to figure out. In my .profile file I added the following lines:</p>

<pre><code>export LC_ALL=en_US.UTF-8
epxort LANG=en_US.UTF-8
</code></pre>

<p>Still didn't change anything. Where am I going wrong?</p>

<p>You should try to set the locale of python before importing basemap </p>

<pre><code>import locale
locale.setlocale(locale.LC_ALL, 'en_US')
</code></pre>

python installation matplotlib-basemap