[GIS] import rasterio gives DLL load failed: The specified module could not be found error

errorgdalimportrasterio

I tried pip install rasterio but it failed building a wheel. So i downloaded the wheel file and tried installing it again as suggested in this post:
https://github.com/mapbox/rasterio/issues/603
It worked and rasterio-1.0a12 was installed successfully but when I am importing it in python it gives me this error:
DLL load failed: The specified module could not be found.

As suggested in this site https://pypi.python.org/pypi/rasterio , i added gdal111.dll and gdal-data file path to windows path but the same error persists. Any suggestions?

Best Answer

You can not pip install rasterio on Windows. There are no binary wheels for Windows on the Python package index. You must use the binary wheels published by Christoph Gohlke (as explained in the rasterio readme), or use Anaconda and the conda-forge packages.