[GIS] Trouble installing Rasterio module for python 2.7 on windows

gdalpython-2.7rasterio

Can anyone please explain to me in step by step instructions how to install rasterio with Python 2.7 on Windows. I have Windows 8 and have tried information on Link

I have installed all the dependencies mentioned and when I try to run the following command on command prompt:

$ rasterio-0.24.1-cp27-none-win_amd64.whl 

It displays an error:

rasterio-0.24.1-cp27-none-win_amd64 is not a supported wheel on this platform.

I have tried all the binaries given at http://www.lfd.uci.edu/~gohlke/pythonlibs/#rasterio but none has worked.

It's installation requires GDAL also and when I try any of the GDAL binaries it gives the same error message as that for rasterio but nevertheless I have installed GDAL with OSGeo4W installer. Now how do I go about installing rasterio? Please suggest something.

Best Answer

I finally managed to get past this problem by systematically going through all of the supporting requirements for rasterio.

One of the key things that helped was:

pip install wheel --upgrade

However also, I touched many many of the other modules (upgrading GDAL, numpy, click and Cython ) before finally getting to the point where

pip install rasterio-0.24.1-cp27-none-win_amd64.whl would finally work for me.

I had success using this method, but then also ran into some later problems to which I am now searching for answers!