[GIS] python rasterio error

pythonrasterio

When I am importing RASTERIO then i am getting an error as:

Traceback (most recent call last):
  File "<pyshell#0>", line 1, in <module>
    import rasterio
  File "C:\Python27\lib\site-packages\rasterio\__init__.py", line 17, in <module>
    from rasterio._base import eval_window, window_shape, window_index
ImportError: DLL load failed: The specified module could not be found.

On importing FIONA i am getting error as:

Traceback (most recent call last):
  File "<pyshell#1>", line 1, in <module>
    import fiona
  File "C:\Python27\lib\site-packages\fiona\__init__.py", line 78, in <module>
    from fiona.collection import Collection, BytesCollection, vsi_path
  File "C:\Python27\lib\site-packages\fiona\collection.py", line 7, in <module>
    from fiona.ogrext import Iterator, ItemsIterator, KeysIterator
ImportError: DLL load failed: The specified module could not be found.

While both rasterio and fiona installed successfully by pip install. please help some one i am stucked here.i am using python 2.7 and gdal1.10 and numpy1.10.2 on 32 bit

Best Answer

In Windows, you cannot install rasterio an fiona wit pip, why ?

Because they need the compilation of many C libraries and Windows has no compiler by default as in Linux or Mac OS X (see How can I install pyproj into arcpy?)

Therefore you can't install these module with setuptools , easy_install or pip -> DLL load failed: The specified module could not be found.

Use the Christoph Gohlke's compiled versions fiona and rasterio

Related Question