0

I want to use cudf library in my projects and installed the rapids. It has been installed well, and here are some strings from outprint

Starting to prep Colab for install RAPIDS Version 0.14 stable
Checking for GPU type:
***********************************************************************
Woo! Your instance has the right kind of GPU, a 'Tesla T4'!
***********************************************************************
************************************************
Your Google Colab instance has RAPIDS installed!
************************************************

However when trying to import cudf, I get

ModuleNotFoundError: No module named 'cudf'

I have a suggestion that it could be connected to incompatible python versions, because when running an installation script

# Install RAPIDS
!git clone https://github.com/rapidsai/rapidsai-csp-utils.git
!bash rapidsai-csp-utils/colab/rapids-colab.sh stable

import sys, os

dist_package_index = sys.path.index('/usr/local/lib/python3.6/dist-packages')
sys.path = sys.path[:dist_package_index] + ['/usr/local/lib/python3.6/site-packages'] + sys.path[dist_package_index:]
sys.path
exec(open('rapidsai-csp-utils/colab/update_modules.py').read(), globals())

I got error

ValueError: '/usr/local/lib/python3.6/dist-packages' is not in list

so I changed the python3.6 to python3.7 everywhere. Anyway, how could I fix this?

4

1 回答 1

0

我们昨晚推送了一个更新,更新了 Colab 上的 RAPIDS 安装。您现在可以正常运行 RAPIDS 0.18 和 0.19。这不仅仅是更改路径(如果您要查看所做的更改,请查看我们的 github),但这完全值得一试!:)

于 2021-03-04T18:16:44.727 回答