3

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.

asked Jul 2, 2015 at 13:54
7
  • 3
    You use Python 2.7 and you are trying to install the version for Python 3.4 (cp34) Commented Jul 2, 2015 at 14:52
  • Sorry, I just gave an example and mistakenly that of python 3.0 but I have tried all the binaries that are compatible with python 2.7 and none worked. I'll make the changes in the question. Thank you for pointing out. Commented Jul 2, 2015 at 15:46
  • 2
    Is your python 64bit or 32bit? Commented Jul 7, 2015 at 11:26
  • 1
    Read carefully the text at the top of Gohlke's index page and also this pip.pypa.io/en/latest/user_guide.html#installing-from-wheels that he links to. Commented Aug 21, 2015 at 16:08
  • For complete beginners on Windows trying to get it to work inside QGIS: This might be useful. Commented Jul 31, 2016 at 23:27

1 Answer 1

1

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!

answered Nov 30, 2016 at 10:44

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.