我正在尝试使用 NVIDIA 提供的以下内容在 Google Colab 的 Tesla P-100CE 上安装 NVIDIA Rapids。
# Installing RAPIDS API.
# NOTE : This may take some few minutes to install.
!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())
执行此操作后,我收到如下错误:
************************************************
Your Google Colab instance has RAPIDS installed!
************************************************
---------------------------------------------------------------------------
ValueError Traceback (most recent call last)
<ipython-input-2-bdfa5194a5f0> in <module>()
5 import sys, os
6
----> 7 dist_package_index = sys.path.index('/usr/local/lib/python3.6/dist-packages')
8 sys.path = sys.path[:dist_package_index] + ['/usr/local/lib/python3.6/site-packages'] + sys.path[dist_package_index:]
9 sys.path
ValueError: '/usr/local/lib/python3.6/dist-packages' is not in list
有人在 Google Colab 中遇到过这个错误吗?如何解决这个问题?任何帮助在这里表示赞赏。
谢谢