我试图按照文档中的说明进行操作
!sudo apt-get update
!sudo apt-get install --no-install-recommends nvidia-375
!sudo apt-get install --no-install-recommends nvidia-opencl-icd-375 nvidia-
opencl-dev opencl-headers
它让我跟随错误消息
/bin/sh: 1: sudo: not found
/bin/sh: 1: sudo: not found
/bin/sh: 1: sudo: not found
然后我按照“在带有 GPU 支持的 anaconda3 中安装 LightGBM ”中的说明进行操作
!git clone --recursive https://github.com/Microsoft/LightGBM.git
!cd LightGBM/python-package
!sudo python3 setup.py install --gpu
它让我跟随错误消息
Cloning into 'LightGBM'...
remote: Counting objects: 9752, done.
remote: Compressing objects: 100% (29/29), done.
remote: Total 9752 (delta 6), reused 12 (delta 5), pack-reused 9718
Receiving objects: 100% (9752/9752), 7.68 MiB | 24.05 MiB/s, done.
Resolving deltas: 100% (6835/6835), done.
Submodule 'include/boost/compute' (https://github.com/boostorg/compute) registered for path 'compute'
Cloning into '/content/LightGBM/compute'...
remote: Counting objects: 21405, done.
remote: Compressing objects: 100% (32/32), done.
remote: Total 21405 (delta 20), reused 35 (delta 13), pack-reused 21354
Receiving objects: 100% (21405/21405), 8.45 MiB | 21.85 MiB/s, done.
Resolving deltas: 100% (17364/17364), done.
Submodule path 'compute': checked out '6de7f6448796f67958dde8de4569fb1ae649ee91'
/bin/sh: 1: sudo: not found
现在我很困惑。