Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs(python): Update GPU engine installation instructions to remove --extra-index-url from CUDA 12 packages #20381

Merged
merged 3 commits into from
Dec 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions docs/source/user-guide/gpu-support.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,12 @@ You can install the GPU backend for Polars with a feature flag as part of a norm
=== ":fontawesome-brands-python: Python"

```bash
pip install --extra-index-url=https://pypi.nvidia.com polars[gpu]
pip install polars[gpu]
```

!!! note Installation on a CUDA 11 system

If you have CUDA 11, the installation line is slightly more complicated: the relevant GPU package must be requested by hand.
If you have CUDA 11, the installation line also needs the NVIDIA package index to get the CUDA 11 package.

=== ":fontawesome-brands-python: Python"
```bash
Expand Down
4 changes: 1 addition & 3 deletions docs/source/user-guide/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,9 +98,7 @@ pip install 'polars[numpy,fsspec]'

!!! note

To install the GPU engine, you need to pass
`--extra-index-url=https://pypi.nvidia.com` to `pip`. See [GPU
support](gpu-support.md) for more detailed instructions and
See [GPU support](gpu-support.md) for more detailed instructions and
prerequisites.

#### Interoperability
Expand Down
2 changes: 1 addition & 1 deletion py-polars/polars/lazyframe/frame.py
Original file line number Diff line number Diff line change
Expand Up @@ -2019,7 +2019,7 @@ def collect(
err_prefix="GPU engine requested, but required package",
install_message=(
"Please install using the command "
"`pip install --extra-index-url=https://pypi.nvidia.com cudf-polars-cu12` "
"`pip install cudf-polars-cu12` "
"(or `pip install --extra-index-url=https://pypi.nvidia.com cudf-polars-cu11` "
"if your system has a CUDA 11 driver)."
),
Expand Down
Loading