首页 > 解决方案 > 安装 rioxarray 时出现 RuntimeError

问题描述

当我尝试通过以下方式安装 rioxarray 时:

pip install rioxarray

我收到以下错误:

RuntimeError: The current Numpy installation (...) fails to pass a sanity check due to a bug in the windows runtime.

一些搜索让我在这里结束,这表明将 numpy 降级到 1.19.3。

但这对我不起作用。

有没有进一步的建议?

操作系统:窗口 10,python:3.8.5

先感谢您。

标签: pythonnumpyruntime-error

解决方案


是的,numpy==1.19.3在这种情况下使用不会有帮助。如果您不介意使用 anaconda,可以安装 rioxarray。安装工作没有任何警告,conda 负责所有依赖项。

> conda create -n myproj
> conda activate myproj
> conda install -c conda-forge rioxarray

> python 
Python 3.9.1 | packaged by conda-forge | (default, Dec  9 2020, 01:07:06) [MSC v.1916 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>>import rioxarray
>>>print(rioxarray.__version__)
0.1.1

推荐阅读