Skip to content

Commit 38f532c

Browse files
authored
[Docs] Update faq.md (#28)
1 parent 0696d28 commit 38f532c

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

docs/src/en/faq.md

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,19 @@
22

33
1. How to resolve when pip install fails?
44

5-
See [installation](https://cachemon.github.io/libCacheSim-python/getting_started/installation/).
5+
See [installation](https://cachemon.github.io/libCacheSim-python/getting_started/installation/).
6+
7+
2. Get an error message like "cannot find Python package" when building.
8+
9+
The reason is that when building a Python binding package, we need the header and other necessary modules.
10+
11+
If you can install software directly,
12+
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.
17+
18+
```shell
19+
export CMAKE_ARGS="-DPython3_ROOT_DIR=${Python3_ROOT_DIR} -DPython3_INCLUDE_DIR=${Python3_INCLUDE_DIR} -DPython3_EXECUTABLE=${Python3_EXECUTABLE}"
20+
```

0 commit comments

Comments
 (0)