python - Trouble installing basemap for matplotlib -


i try install basemap python.

i installed geometry engine this:

export geos_dir=/usr/local ./configure --prefix=$geos_dir make; make install 

then installed proj4-9-1 this:

./configure make make install 

that seems good. @ least, there no errors popping up. tried install basemap via

python setup.py install 

which gave me error - permission denied (and lot of other errors these:

src/_geoslib.c:6023:34: warning: unused function '__pyx_pyint_assignedchar' [-wunused-function] static cython_inline signed char __pyx_pyint_assignedchar(pyobject* x) {                               ^ src/_geoslib.c:6042:35: warning: unused function '__pyx_pyint_assignedshort' [-wunused-function] static cython_inline signed short __pyx_pyint_assignedshort(pyobject* x) {                         ^ src/_geoslib.c:6061:33: warning: unused function '__pyx_pyint_assignedint' [-wunused-function] static cython_inline signed int __pyx_pyint_assignedint(pyobject* x) { 

or

/usr/local/include/geos_c.h:500:71: note: passing argument parameter 's' here extern geosgeometry geos_dll *geosgeom_createpoint(geoscoordsequence* s); 

or

src/_geoslib.c:5339:12: warning: incompatible pointer types passing 'void (char *, char *)' parameter of type 'geosmessagehandler' (aka 'void (*)(const char *, ...)') [-wincompatible-pointer-types] initgeos(__pyx_f_8_geoslib_notice_h, __pyx_f_8_geoslib_error_h); 

so, since last error was:

running install_lib copying build/lib.macosx-10.10-intel-2.7/_geoslib.so -> /library/python/2.7/site-packages error: /library/python/2.7/site-packages/_geoslib.so: permission denied 

i typed in

sudo python2.7 setup.py install 

which did not give me errors. last lines these

running install_egg_info writing /library/python/2.7/site-packages/basemap-1.0.7-py2.7.egg-info running install_clib customize unixccompiler 

but, importing basemap in python2.7 gives me this:

from mpl_toolkits.basemap import basemap traceback (most recent call last): file "<stdin>", line 1, in <module> importerror: no module named basemap 

obviously, did not install it... ideas why?


Comments

Popular posts from this blog

javascript - AngularJS custom datepicker directive -

javascript - jQuery date picker - Disable dates after the selection from the first date picker -