Skip to content

Commit d0a0669

Browse files
authored
[Docs] refine instructions in FAQ (#29)
1 parent 38f532c commit d0a0669

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

docs/src/en/faq.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,14 @@
66

77
2. Get an error message like "cannot find Python package" when building.
88

9-
The reason is that when building a Python binding package, we need the header and other necessary modules.
9+
The reason is that building Python bindings requires Python's development headers and libraries.
1010

11-
If you can install software directly,
11+
If you have administrative privileges, you can use your system's package manager to install the required package. For example:
12+
* **Debian/Ubuntu**: `sudo apt install python3-dev`
13+
* **RHEL/CentOS/Fedora**: `sudo yum install python3-devel`
14+
* **macOS**: Installing Python with Homebrew (`brew install python`) is usually sufficient.
1215

13-
```shell
14-
[sudo] apt install python3-dev
15-
```
16-
If not, please install Python somewhere and set environment variables to help the building system find them.
16+
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.
1717

1818
```shell
1919
export CMAKE_ARGS="-DPython3_ROOT_DIR=${Python3_ROOT_DIR} -DPython3_INCLUDE_DIR=${Python3_INCLUDE_DIR} -DPython3_EXECUTABLE=${Python3_EXECUTABLE}"

0 commit comments

Comments
 (0)