Problems installing/importing Basemap
Asked Answered
T

3

7

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?

Thurible answered 6/9, 2013 at 22:58 Comment(0)
I
10

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

Imhoff answered 9/10, 2013 at 10:21 Comment(2)
The question mentions the directory "Anacaonda\Lib\site-packages\mpl_toolkits". With those backslashes, my first guess is the OP is using Windows.Exterior
aggree with this answer,you should install the package within AnacondaPernik
H
1

If your on Windows try installing Basemap from the Sourceforge executable, these should include GEOS and PROJ4 dependencies of Basemap.

Hebe answered 16/1, 2014 at 12:14 Comment(0)
A
-1

I believe all that is needed is to update matplotlib, I just had this problem and doing this worked for me:

pip install --upgrade matplotlib
Alberthaalberti answered 20/11, 2016 at 2:34 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.