Skip to content

Commit e645e7d

Browse files
authored
Update install doc for Conda (dmlc#11483)
1 parent 2ddf6ae commit e645e7d

File tree

1 file changed

+7
-12
lines changed

1 file changed

+7
-12
lines changed

doc/install.rst

Lines changed: 7 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -104,25 +104,20 @@ Conda should be able to detect the existence of a GPU on your machine and instal
104104

105105
.. code-block:: bash
106106
107-
# CPU only
108-
conda install -c conda-forge py-xgboost-cpu
109-
# Use NVIDIA GPU
110-
conda install -c conda-forge py-xgboost-gpu
107+
# CPU variant
108+
conda install -c conda-forge py-xgboost=*=cpu*
109+
# GPU variant
110+
conda install -c conda-forge py-xgboost=*=cuda*
111111
112112
To force the installation of the GPU variant on a machine that does not have an NVIDIA GPU, use environment variable ``CONDA_OVERRIDE_CUDA``,
113113
as described in `"Managing Virtual Packages" in the conda docs <https://conda.io/projects/conda/en/latest/user-guide/tasks/manage-virtual.html>`_.
114114

115115
.. code-block:: bash
116116
117-
export CONDA_OVERRIDE_CUDA="12.5"
118-
conda install -c conda-forge py-xgboost-gpu
117+
export CONDA_OVERRIDE_CUDA="12.8"
118+
conda install -c conda-forge py-xgboost=*=cuda*
119119
120-
Visit the `Miniconda website <https://docs.conda.io/en/latest/miniconda.html>`_ to obtain Conda.
121-
122-
.. note:: ``py-xgboost-gpu`` not available on Windows.
123-
124-
The ``py-xgboost-gpu`` is currently not available on Windows. If you are using Windows,
125-
please use ``pip`` to install XGBoost with GPU support.
120+
You can install Conda from the following link: `Download the conda-forge Installer <https://conda-forge.org/download/>`_.
126121

127122
R
128123
-

0 commit comments

Comments
 (0)