|
4 | 4 |
|
5 | 5 | * **macOS version 10.x/11.x/12.x/13.x/14.x/15.x (64 bit) (not support GPU version)**
|
6 | 6 | * **Python version 3.9/3.10/3.11/3.12/3.13 (64 bit)**
|
| 7 | +* **Note: Docker compilation only supports x86_64 architecture, generated x86_64 whl packages cannot be installed on Apple Silicon (M-series chip) Macs** |
7 | 8 |
|
8 | 9 | ## Choose CPU/GPU
|
9 | 10 |
|
10 | 11 | * Currently, only PaddlePaddle for CPU is supported.
|
11 | 12 |
|
12 | 13 | ## Installation steps
|
13 |
| -There are two compilation methods in macOS system. It's recommended to use Docker to compile. |
14 |
| -The dependencies required for compiling Paddle are pre-installed in the Docker environment, which is simpler than the native compiling environment. |
| 14 | +There are two compilation methods in macOS system: |
15 | 15 |
|
16 |
| -* [Compile with Docker](#compile_from_docker) |
17 |
| -* [Local compilation](#compile_from_host) |
| 16 | +* [Compile with Docker](#compile_from_docker) - Only for Intel Mac (x86_64) |
| 17 | +* [Local compilation](#compile_from_host) - Recommended for Apple Silicon Mac (ARM64) |
| 18 | + |
| 19 | +**Note:** Docker compilation only supports x86_64 architecture, generated x86_64 whl packages cannot be installed on Apple Silicon (M-series chip) Macs. If you are using an Apple Silicon Mac, please use local compilation. |
18 | 20 |
|
19 | 21 | <a name="mac_docker"></a>
|
20 | 22 | ### <span id="compile_from_docker">**Compile with Docker**</span>
|
@@ -169,6 +171,8 @@ We used Python3.10 command as an example above, if the version of your Python is
|
169 | 171 |
|
170 | 172 | **Please strictly follow the order of the following instructions**
|
171 | 173 |
|
| 174 | +**Important:** If you are using an Apple Silicon (M-series chip) Mac, please ensure you use local compilation and add the `-DWITH_ARM=ON` parameter to the cmake command. |
| 175 | +
|
172 | 176 | #### 1. Check that your computer and operating system meet our supported compilation standards: `uname -m` and view the system version `about this Mac`. And install [OpenCV](https://opencv.org/releases.html) in advance.
|
173 | 177 |
|
174 | 178 | #### 2. Install python and pip:
|
@@ -268,7 +272,7 @@ mkdir build && cd build
|
268 | 272 |
|
269 | 273 | ```
|
270 | 274 | cmake .. -DPY_VERSION=3.10 -DPYTHON_INCLUDE_DIR=${PYTHON_INCLUDE_DIRS} \
|
271 |
| - -DPYTHON_LIBRARY=${PYTHON_LIBRARY} -DWITH_GPU=OFF |
| 275 | + -DPYTHON_LIBRARY=${PYTHON_LIBRARY} -DWITH_GPU=OFF -DWITH_ARM=ON |
272 | 276 | ```
|
273 | 277 |
|
274 | 278 | - ``-DPY_VERSION=3.10`` Please change to the Python version of the installation environment.
|
|
0 commit comments