---
metadata:
  - name: generator
    content: Diplodoc Platform v5.52.0
alternate:
  - https://catboost.ai/docs/en/installation/python-installation-method-build-a-wheel-package.md
  - href: en/installation/python-installation-method-build-a-wheel-package.md
    type: text/markdown
    title: Markdown version
  - href: ../llms.txt
    type: text/markdown
    title: llms.txt
---
> **Documentation Index:** Fetch the complete configuration index at https://catboost.ai/docs/en/llms.txt

# Build a wheel package

<!-- source: en/_includes/work_src/reusage-installation/python__supported-versions.md -->
{% note info %}

CatBoost Python package supports only [CPython Python implementation](https://en.wikipedia.org/wiki/CPython).

{% endnote %}
<!-- endsource: en/_includes/work_src/reusage-installation/python__supported-versions.md -->


## Build using `setup.py bdist_wheel` or `build` {#standard}

Since [this commit](https://github.com/catboost/catboost/commit/f37d091421089231ed3c74a0431fff1c3544d606) CatBoost uses standard Python procedures.

See [documentation here](https://catboost.ai/docs/en/installation/python-installation-method-build-from-source.md#build-wheel).

## Build using mk_wheel.py {#mk-wheel}

Recommended only for versions previous to [this commit](https://github.com/catboost/catboost/commit/f37d091421089231ed3c74a0431fff1c3544d606). For newer versions [build using `setup.py bdist_wheel` or `build`](#standard).

To build a self-contained Python Wheel:

1. [Setup build environment](https://catboost.ai/docs/en/installation/build-environment-setup-for-ya-make.md)
1. Run the `catboost/catboost/python-package/mk_wheel.py` script.

Optional parameters:

Parameter | Description
----- | -----
`-DCUDA_ROOT` | The path to CUDA. This parameter is required to support training on GPU.

For example, to build and install a wheel on Windows for Anaconda with training on GPU support run:

```
python.exe mk_wheel.py -DPYTHON_INCLUDE="/I C:\Anaconda2\include" -DPYTHON_LIBRARIES="C:\Anaconda2\libs\python27.lib" -DCUDA_ROOT="C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v8.0"
C:\Anaconda2\Scripts\pip.exe install catboost-0.1.0.6-cp27-none-win_amd64.whl
```
