错误:找不到满足需求 dask-cudf(版本:无)的版本。

4

描述错误

当我尝试导入dask_cudf时,我会遇到以下错误:


---------------------------------------------------------------------------
ModuleNotFoundError                       Traceback (most recent call last)
<ipython-input-11-afb970ad91bb> in <module>()
      8 from dask_cuda import LocalCUDACluster
      9 import dask_xgboost
---> 10 import dask_cudf
     11 import dask
     12 from xgboost.dask import DaskDMatrix

ModuleNotFoundError: No module named 'dask_cudf'

---------------------------------------------------------------------------
NOTE: If your import is failing due to a missing package, you can
manually install dependencies using either !pip or !apt.

To view examples of installing some common dependencies, click the
"Open Examples" button below.
---------------------------------------------------------------------------

我已经使用pip安装了dask和RAPIDS

我正在尝试在Google Colab窗口中使用以下代码进行安装 %pip install dask-cudf

我得到以下错误

ERROR: Could not find a version that satisfies the requirement dask-cudf (from versions: none)
ERROR: No matching distribution found for dask-cudf

CUDF的Github页面已经存档了。现在我该如何将其安装到Google Colab上呢?https://github.com/rapidsai/dask-cudf

我尝试过的解决方案

2个回答

6

RAPIDS不支持pip安装 (https://medium.com/rapids-ai/rapids-0-7-release-drops-pip-packages-47fc966e9472)。如果您使用pip安装RAPIDS,则不清楚如何安装。

RAPIDS的pip安装页面(https://pypi.org/project/rapidsai/)指出应该使用conda代替pip来安装RAPIDS。

请使用RAPIDS入门页面 (https://rapids.ai/start.html)提供的选项之一来安装RAPIDS。

另外,请问您使用的是哪个版本的RAPIDS?

由于Google colab不支持Python 3.7或以上版本,因此最新版本的RAPIDS无法在Google colab上安装。


Rapids安装pip install rapidsai 我认为这可能是一个旧版本,现在可能不受支持。 - sogu

1

参考信息,现在应该可以使用了,尽管还处于试验阶段:https://rapids.ai/pip.html

写作时:

pip install cudf-cu11 dask-cudf-cu11 --extra-index-url=https://pypi.ngc.nvidia.com

我在安装pip时遇到了以下错误:ERROR: Could not find a version that satisfies the requirement cudf-cu11 (from versions: 0.0.1) ERROR: No matching distribution found for cudf-cu11 - mnm

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接