diff --git a/docs/src/en/faq.md b/docs/src/en/faq.md index 391e6cf..7f23120 100644 --- a/docs/src/en/faq.md +++ b/docs/src/en/faq.md @@ -6,14 +6,14 @@ 2. Get an error message like "cannot find Python package" when building. - The reason is that when building a Python binding package, we need the header and other necessary modules. + The reason is that building Python bindings requires Python's development headers and libraries. - If you can install software directly, + If you have administrative privileges, you can use your system's package manager to install the required package. For example: + * **Debian/Ubuntu**: `sudo apt install python3-dev` + * **RHEL/CentOS/Fedora**: `sudo yum install python3-devel` + * **macOS**: Installing Python with Homebrew (`brew install python`) is usually sufficient. - ```shell - [sudo] apt install python3-dev - ``` - If not, please install Python somewhere and set environment variables to help the building system find them. + Alternatively, if you installed Python in a custom location, you must set environment variables to help the build system find it. Remember to replace the placeholders in the command below with your actual paths. ```shell export CMAKE_ARGS="-DPython3_ROOT_DIR=${Python3_ROOT_DIR} -DPython3_INCLUDE_DIR=${Python3_INCLUDE_DIR} -DPython3_EXECUTABLE=${Python3_EXECUTABLE}"