Quantcast
Channel: Question and Answer » gdal
Viewing all articles
Browse latest Browse all 397

gdalnumeric in python virtualenv

$
0
0

I’m having a problem importing gdalnumeric when working on virtualenvs. I’m getting the following error:

from osgeo import gdalnumeric
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Users/plablo/.virtualenvs/idegeo/lib/python2.7/site-packages/GDAL-1.11.0-py2.7-macosx-10.9-x86_64.egg/osgeo/gdal_array.py", line 25, in <module>
_gdal_array = swig_import_helper()
File "/Users/plablo/.virtualenvs/idegeo/lib/python2.7/site-packages/GDAL-1.11.0-py2.7-macosx-10.9-x86_64.egg/osgeo/gdal_array.py", line 17, in swig_import_helper
import _gdal_array
ImportError: No module named _gdal_array

I’m getting this error both on OS X and ubuntu.
I’ve googled around and it seems to be related to the numpy development headers but I can’t find a way to link those to my virtualenv

Any help is appreciated


Viewing all articles
Browse latest Browse all 397

Trending Articles