Unverified Commit 07e8775f authored by Xin Li's avatar Xin Li Committed by GitHub
Browse files

[Docs] Add reminder in docs for macOS M1 users (#2268)

* Add reminder in docs for macOS M1 users
parent 7d075d10
......@@ -82,7 +82,7 @@ There are two versions of MMCV:
a. Install the full version.
Before installing mmcv, make sure that PyTorch has been successfully installed following the [official guide](https://pytorch.org/).
Before installing mmcv, make sure that PyTorch has been successfully installed following the [official guide](https://pytorch.org/). For macOS M1 users, please make sure you are using `PyTorch Nightly`.
We provide pre-built mmcv packages (recommended) with different PyTorch and CUDA versions to simplify the building for **Linux and Windows systems**. In addition, you can run [check_installation.py](.dev_scripts/check_installation.py) to check the installation of mmcv after running the installation commands.
......
......@@ -81,7 +81,7 @@ MMCV 有两个版本:
a. 安装完整版
在安装 mmcv 之前,请确保 PyTorch 已经成功安装在环境中,可以参考 PyTorch [官方文档](https://pytorch.org/)
在安装 mmcv 之前,请确保 PyTorch 已经成功安装在环境中,可以参考 PyTorch [官方文档](https://pytorch.org/)对于使用 macOS M1 的用户,请确保你的 PyTorch 是 `Nightly` 版本。
我们提供了 **Linux 和 Windows 平台** PyTorch 和 CUDA 版本组合的 mmcv 预编译包,可以大大简化用户安装编译过程。强烈推荐通过预编译包来安装。另外,安装完成后可以运行 [check_installation.py](.dev_scripts/check_installation.py) 脚本检查 mmcv 是否安装成功。
......
......@@ -30,7 +30,7 @@ You can either
pip install -e .
```
If you are on macOS, add the following environment variables before the installing command.
If you are on macOS, add the following environment variables before the installing command. Meanwhile, please make sure you are using `PyTorch Nightly` in macOS M1.
```bash
CC=clang CXX=clang++ CFLAGS='-stdlib=libc++'
......
......@@ -11,7 +11,7 @@ Do not install both versions in the same environment, otherwise you may encounte
a. Install the full version.
Before installing mmcv, make sure that PyTorch has been successfully installed following the [official guide](https://pytorch.org/).
Before installing mmcv, make sure that PyTorch has been successfully installed following the [official guide](https://pytorch.org/). For macOS M1 users, please make sure you are using `PyTorch Nightly`.
We provide pre-built mmcv packages (recommended) with different PyTorch and CUDA versions to simplify the building for **Linux and Windows systems**. In addition, you can run [check_installation.py](https://github.com/open-mmlab/mmcv/blob/2.x/.dev_scripts/check_installation.py) to check the installation of mmcv after running the installation commands.
......
......@@ -28,7 +28,7 @@ MMCV_WITH_OPS=0 pip install -e .
pip install -e .
```
如果是在 macOS 上编译,则需要在安装命令前添加一些环境变量
如果是在 macOS 上编译,则需要在安装命令前添加一些环境变量,同时对于使用 macOS M1 的用户,请确保你的 PyTorch 是 `Nightly` 版本。
```bash
CC=clang CXX=clang++ CFLAGS='-stdlib=libc++'
......
......@@ -11,7 +11,7 @@ MMCV 有两个版本:
a. 安装完整版
在安装 mmcv 之前,请确保 PyTorch 已经成功安装在环境中,可以参考 PyTorch 官方[文档](https://pytorch.org/)
在安装 mmcv 之前,请确保 PyTorch 已经成功安装在环境中,可以参考 PyTorch 官方[文档](https://pytorch.org/)对于使用 macOS M1 的用户,请确保你的 PyTorch 是 `Nightly` 版本。
我们提供了 **Linux 和 Windows 平台** PyTorch 和 CUDA 版本组合的 mmcv 预编译包,可以大大简化用户安装编译过程。强烈推荐通过预编译包来安装。另外,安装完成后可以运行 [check_installation.py](https://github.com/open-mmlab/mmcv/blob/2.x/.dev_scripts/check_installation.py) 脚本检查 mmcv 是否安装成功。
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment