catboost/docs/en/installation/python-installation-method-build-from-source-linux-macos-using-ya-make.md
{% if audience == "internal" %}
{% include internal-note__use-outside-arcadia %}
{% endif %}
{% note info %}
{% include ya-make-to-cmake-switch %}
This page describes building using Ya Make. For building using CMake see documentation here.
{% endnote %}
python3python3-devnumpypandas{% include installation-nvidia-driver-reqs %}
To build the {{ python-package }} from source on Linux and macOS:
Clone the repository:
{{ installation--git-clone }}
Open the catboost/catboost/python-package/catboost directory from the local copy of the {{ product }} repository.
{% include installation-compile-the-library %}
{% include installation-installation-example %}
{% note info %}
The required version of Xcode for building on macOS is specified on the NVIDIA site when downloading the CUDA toolkit.
{% endnote %}
Add the current directory to PYTHONPATH:
cd ../; export PYTHONPATH=$PYTHONPATH:$(pwd)
| Error type | Message format | Troubleshooting tips |
|---|---|---|
AttributeError | type object '_catboost.<something>' has no attribute 'reduce_cython' | |
| <b>Example:</b> | ||
AttributeError: type object '_catboost._FloatArrayWrapper' has no attribute 'reduce_cython' | ||
AttributeError: type object '_catboost.Py_ITypedSequencePtr' has no attribute 'reduce_cython' |
| Install or update the following packages:
numpypandas