rapidsai / cuml

cuML - RAPIDS Machine Learning Library
https://docs.rapids.ai/api/cuml/stable/
Apache License 2.0
4.25k stars 534 forks source link

[BUG] Installation with conda doesn't work. #5969

Open Amit-Weiss opened 4 months ago

Amit-Weiss commented 4 months ago

Describe the bug When I try to install using the generated command from https://docs.rapids.ai/install#get-rapids, the installation fails with:

Could not solve for environment specs
The following package could not be installed
└─ cuml 24.06**  is not installable because it requires
   └─ cupy >=12.0.0 , which conflicts with any installable versions previously reported.

Trying various types of selections such as different CUDA, different python, different Release results in the same errors. Also, leaving out parts of the command like cuda-version installation or downgrading to different versions still doesn't work.

Steps/Code to reproduce bug Run the command generated from the selector:

conda create -n rapids-24.06 -c rapidsai -c conda-forge -c nvidia  \
    cuml=24.06 python=3.11 cuda-version=11.8

OR By creating a new environment and then running the conda install command OR By using a conda.yml file.

Expected behavior The package should be installed.

Environment details (please complete the following information):

Additional context I have tried various options and configurations, including installing the package that reported to be conflicting etc. It doesn't work for me and I cannot find a way to install even the slimmest version. Thanks for your help

dantegd commented 4 months ago

Thanks for the issue @Amit-Weiss, seems like the issue is with installing CuPy, to help two things would be really useful:

mamba create -n cupy12cuml2306
mamba activate cupy12cuml2306
mamba install -c conda-forge "cupy>=12" "cuda-version=11.8"
mamba install -c rapidsai -c conda-forge -c nvidia cuml=24.06 cuda-version=11.8
Amit-Weiss commented 4 months ago

Hey @dantegd Thank you for your comment. I followed your steps, installing cupy works but when I run the cuml installation I still get an error. The full error log is:

mamba install -c rapidsai -c conda-forge -c nvidia cuml=24.06 cuda-version=11.8

Looking for: ['cuml=24.06', 'cuda-version=11.8']

conda-forge/linux-64                                        Using cache
conda-forge/noarch                                          Using cache
pytorch/linux-64                                            Using cache
pytorch/noarch                                              Using cache
nvidia/noarch                                                 No change
nvidia/linux-64                                               No change
rapidsai/linux-64                                             No change
rapidsai/noarch                                               No change

Pinned packages:
  - python 3.12.*

warning  libmamba Added empty dependency for problem type SOLVER_RULE_UPDATE
Could not solve for environment specs
The following packages are incompatible
└─ cuml 24.06**  is installable with the potential options
   ├─ cuml [24.06.00|24.06.01] would require
   │  └─ python >=3.10,<3.11.0a0 , which can be installed;
   ├─ cuml [24.06.00|24.06.01] would require
   │  └─ python >=3.11,<3.12.0a0 , which can be installed;
   └─ cuml [24.06.00|24.06.01] would require
      └─ python >=3.9,<3.10.0a0 , which can be installed.

I also tried installing different python versions as suggested in the error logs, but I still get The following packages are incompatible, now with packages like raft-dask or ucx-py.

dantegd commented 3 months ago

Do you happen to have the logs of the errors of raft-dask and ucx-py? I ask, since there are no RAPIDS python 3.12 packages yet, so the error with python 3.12 is not very useful to debug what's going wrong here.