Problems installing/importing Basemap

jrb0042 picture jrb0042 · Sep 7, 2013 · Viewed 18k times · Source

I have installed Anaconda (version 1.6.2) installed on my 64 bit machine. It comes with a great set of libraries, but I also need Basemap, part of matlibplot, but it is not included with the Anaconda install. I attempted to install Basemap and move the files in the Anacaonda\Lib\site-packages\mpl_toolkits directory since it is part of the mpl_toolkits library. However when I attempt to run a script, I keep getting the errors: "No module named _geoslib" "Cannot import pyproj"

I found the pyproj library. Do I need it? Where can I find geoslib? And how do I get Basemap to work?

Answer

fereshteh asgari picture fereshteh asgari · Oct 9, 2013

What you nees is to change your path first, by:

$ export PATH=~/anaconda/bin:$PATH

and then,

$ conda install basemap

( I assumed you are in Linux)

source:http://docs.continuum.io/anaconda/faq.html