How do I install cudf using pip?

rahul_5409 picture rahul_5409 · Sep 12, 2019 · Viewed 10.8k times · Source

I wanted to accelerate pandas on my GPU so I decided to use cudf library. Please do suggest other libraries(if any).

I tried to install cudf using pip by pip3.6 install cudf-cuda92. The pip version is 19.2.3(latest).

When I run pip3.6 install cudf-cuda92 on my cmd it says:

Collecting cudf-cuda92
  ERROR: Could not find a version that satisfies the requirement cudf-cuda92 (from versions: none)
ERROR: No matching distribution found for cudf-cuda92

Answer

Dennis picture Dennis · Sep 12, 2019

You can try installing using conda.You can get a minimal conda installation with Miniconda or get the full installation with Anaconda.

Install and update cuDF using the conda command:

# CUDA 9.2
conda install -c nvidia -c rapidsai -c numba -c conda-forge -c defaults cudf

# CUDA 10.0
conda install -c nvidia/label/cuda10.0 -c rapidsai/label/cuda10.0 -c numba -c conda-forge -c defaults cudf

Find out more from cudf.PyPi