I want to install the cuml in JupiterLab.

Asked 2 years ago, Updated 2 years ago, 325 views

This is JupiterLab 3.3.2.I wanted to use the cuml support vector machine, so I ran the following code, and I got an error (assuming error #1).

Code executed:

from cuml.svm import SVR
import cuml
print('RAPIDS version', cuml.__version__)

Error #1:

------------------------------------------------------------------------------------------------
ModuleNotFoundError Traceback (most recent call last)
Input In[3], in<cellline:1>()
---->1 from cuml.svm import SVR
      2 import cuml
      3 print('RAPIDS version', cuml.__version__)

ModuleNotFoundError: No module named 'cuml'

I thought I should install it, so I ran conda install cuml and got the following error (assuming error #2).

Error #2

Collecting package metadata (current_repodata.json): ...working...
done Note: you may need to restart the kernel to use updated packages.
Solving environment: ...working... failed with initial frozen solve.
Retrying with flexible solution.Collecting package metadata
(repoda.json): ...working... done Solving environment: ...working...
failed with initial frozen solve. Retrying with flexible solve.

PackagesNotFoundError: The following packages are not available from
current channels:

  - cuml

Current channels:

  - - https://repo.anaconda.com/pkgs/main/win-64
  - - https://repo.anaconda.com/pkgs/main/noarch
  - - https://repo.anaconda.com/pkgs/r/win-64
  - - https://repo.anaconda.com/pkgs/r/noarch
  - - https://repo.anaconda.com/pkgs/msys2/win-64
  - - https://repo.anaconda.com/pkgs/msys2/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.

Open rapid /https://anaconda.org at the top of the list searched for "cuml" in cuml and only error #2 appears.Attempted to restart the kernel.
How do I install the cuml on JupiterLab?

python jupyter-lab

2022-10-25 11:42

1 Answers

Rather than doing anything with jupyterlab, it seems to be a problem with the operating system you are using.

If you look at the Current channels: in the error message, the operating system seems to be 64-bit Windows, but if you look at the appropriate page in Anaconda.org, only linux-64 and linux-arch64 are supported

If you look at the manufacturer's page, it says that you need a Linux system to use it.
I understand that Windows may be supported in the near future, but that's low.
Welcome to cuML's documentation!

An installation requirement for cuML is that your system must be Linux-like.Support for Windows is Possible in the near future.

How to use probable and posible [expression of possibility]

Probable is more likely than posible, 70% probable and 30% posible.

There is no cuml on the site that provides and distributes unofficial binaries for Windows.
Archived:Unofficial Windows Binaries for Python Extension Packages

The installation instructions for cudf, which seems to be the current main project of the same manufacturer, are a little more detailed.
It says that Windows 11, WSL2, and Ubuntu 20.04 are required for use with Windows.(Excerpts only related parts)
Getting Started|RAPIDS

SYSTEM REQUIREMENTS
OS:One of the following OS versions:
Windows 11 using WSL2 See separate install guide>>

RAPIDS+WSL2|RAPIDS

PREREQUISITES
Operating System: Windows 11.
WSL Version—WSL2.WSL1 is not supported.
WSL2 Instance: Ubuntu 20.04 instance for WSL2.

You also need GPUs and CUDA related items, but please check the above manufacturer page.


2022-10-25 11:42

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.