Issue
As I tried to install rioxarray by:
pip install rioxarray
I got the following error:
RuntimeError: The current Numpy installation (...) fails to pass a sanity check due to a bug in the windows runtime.
A bit of search ended me up here which suggests downgrading numpy to 1.19.3.
But it didn't work for me.
Are there any further suggestions?
OS: window 10, python:3.8.5
Thank you in advance.
Solution
By reading over the error message I figured out that the problem actually returns to one of rioxarray's dependencies called rasterio which can not be installed by pip. It is even mentioned in its document that it should be installed by .whl file.
By the way I did all of the following steps to solve this problem. I don't know which one is crucial but doing them as a whole solved mine.
- Although I had GDAL installed, I upgrade it to 3.1.4 by its wheel file here.
- I installed fiona 1.8.18
- I installed rasterio 1.1.8
- Then
pip install rioxarray
Note 1: For those who don't know how to install .whl file, this link might be helpful. All you need to do is just run pip install <filename>.whl
in the file directory.
Note 2: Thanks to lww there is no need of doing so in anaconda environment and installing rioxarray works just fine.
Answered By - Sajad.sni
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.