gdalnumeric in python virtualenv

المشرف العام

Administrator
طاقم الإدارة
I'm having a problem importing gdalnumeric when working on virtualenvs. I'm getting the following error:

from osgeo import gdalnumericTraceback (most recent call last):File "", line 1, in 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 _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_helperimport _gdal_arrayImportError: No module named _gdal_arrayI'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



أكثر...
 
أعلى