- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我正在尝试将带有 cuDF 和 cuML 的 Rapids 库安装到 Colab session ,
并根据此示例执行代码:
从
Install RAPIDS library on Googe Colab notebook
!wget -nc https://raw.githubusercontent.com/rapidsai/notebooks-contrib/890b04ed8687da6e3a100c81f449ff6f7b559956/utils/rapids-colab.sh
!bash rapids-colab.sh
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
if os.path.exists('update_pyarrow.py'): ## This file only exists if you're using RAPIDS version 0.11 or higher
exec(open("update_pyarrow.py").read(), globals())
- cudf=0.11
Current channels:
- https://conda.anaconda.org/rapidsai-nightly/label/xgboost/linux-64
- https://conda.anaconda.org/rapidsai-nightly/label/xgboost/noarch
- https://conda.anaconda.org/rapidsai-nightly/linux-64
- https://conda.anaconda.org/rapidsai-nightly/noarch
- https://conda.anaconda.org/nvidia/linux-64
- https://conda.anaconda.org/nvidia/noarch
- https://conda.anaconda.org/conda-forge/linux-64
- https://conda.anaconda.org/conda-forge/noarch
- https://repo.anaconda.com/pkgs/main/linux-64
- https://repo.anaconda.com/pkgs/main/noarch
- https://repo.anaconda.com/pkgs/free/linux-64
- https://repo.anaconda.com/pkgs/free/noarch
- https://repo.anaconda.com/pkgs/r/linux-64
- https://repo.anaconda.com/pkgs/r/noarch
- https://repo.anaconda.com/pkgs/pro/linux-64
- https://repo.anaconda.com/pkgs/pro/noarch
To search for alternate channels that may provide the conda package you're
looking for, navigate to
https://anaconda.org
and use the search bar at the top of the page.
conda install -c rapidsai -c nvidia -c conda-forge \
-c defaults cudf=0.12 python=3.6 cudatoolkit=10.0
ModuleNotFoundError Traceback (most recent call last)
<ipython-input-10-a95ca25217db> in <module>()
----> 1 import cudf
2 import io, requests
3
4 # download CSV file from GitHub
5 url="https://github.com/plotly/datasets/raw/master/tips.csv"
ModuleNotFoundError: No module named 'cudf'
最佳答案
更新(2020 年 12 月 21 日):要直接在线使用 GPU 驱动的 RAPIDS 笔记本,您可以 使用 BlazingSQL (快速 0.15+) 或继续使用 Colabatory(仅限 RAPIDS 0.14)
更新(2/19/2020):回到这个问题,Colab 正在工作 @try。玩得开心!
如果您有任何其他问题,请告诉我们。如果您需要更新您的个人 Colab 笔记本,请使用此脚本安装 RAPIDS:
# Install RAPIDS
!git clone https://github.com/rapidsai/rapidsai-csp-utils.git
!bash rapidsai-csp-utils/colab/rapids-colab.sh
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())
之前的回复:
we are in the middle or transitioning our Colab scripts to a new repo.We should have all our notebooks updated soon and try to help othersmigrate as well. Like within 24 hours, if not by EOD today PST.
关于python - 使用 Rapids.ai 0.11+ 版将 cuDF 和 cuML 安装到 Colab,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60188071/
我正在 Google Colab 上使用 CUML 0.10.0 库中的随机森林回归模型,但在获取模型预测时遇到问题。模型训练成功结束后,我使用 (.predict) 方法对一个非常大的数组 (416
我正在使用 conda 安装 cuml conda install -c rapidsai cuml=21.12 这是我得到的痕迹: Collecting package metadata (curr
我正在尝试将带有 cuDF 和 cuML 的 Rapids 库安装到 Colab session , 并根据此示例执行代码: 从 Install RAPIDS library on Googe Col
我是一名优秀的程序员,十分优秀!