Unverified Commit a0cac22c authored by LYMDLUT's avatar LYMDLUT Committed by GitHub
Browse files

[Docs] Make installation commands compatible with windows cmd (#2353)



* fix the install bug in win cmd

* fix the install bug in win cmd

* Update README.md
Co-authored-by: default avatarZaida Zhou <58739961+zhouzaida@users.noreply.github.com>

* Update README_zh-CN.md
Co-authored-by: default avatarZaida Zhou <58739961+zhouzaida@users.noreply.github.com>

* Update docs/en/get_started/installation.md
Co-authored-by: default avatarZaida Zhou <58739961+zhouzaida@users.noreply.github.com>

* Update docs/zh_cn/get_started/installation.md
Co-authored-by: default avatarZaida Zhou <58739961+zhouzaida@users.noreply.github.com>

* Update docs/en/get_started/installation.md
Co-authored-by: default avatarZaida Zhou <58739961+zhouzaida@users.noreply.github.com>

* Update docs/zh_cn/get_started/installation.md
Co-authored-by: default avatarZaida Zhou <58739961+zhouzaida@users.noreply.github.com>
Co-authored-by: default avatarlym <letusgo126@126.com>
Co-authored-by: default avatarZaida Zhou <58739961+zhouzaida@users.noreply.github.com>
parent 2b97c52d
...@@ -66,7 +66,7 @@ The command to install mmcv on Linux or Windows platforms is as follows (if your ...@@ -66,7 +66,7 @@ The command to install mmcv on Linux or Windows platforms is as follows (if your
```bash ```bash
pip install -U openmim pip install -U openmim
mim install 'mmcv>=2.0.0rc1' mim install "mmcv>=2.0.0rc1"
``` ```
If you need to specify the version of mmcv, you can use the following command If you need to specify the version of mmcv, you can use the following command
...@@ -103,7 +103,7 @@ If you need to use PyTorch-related modules, make sure PyTorch has been successfu ...@@ -103,7 +103,7 @@ If you need to use PyTorch-related modules, make sure PyTorch has been successfu
```bash ```bash
pip install -U openmim pip install -U openmim
mim install 'mmcv-lite>=2.0.0rc1' mim install "mmcv-lite>=2.0.0rc1"
``` ```
## FAQ ## FAQ
......
...@@ -66,7 +66,7 @@ MMCV 有两个版本: ...@@ -66,7 +66,7 @@ MMCV 有两个版本:
```bash ```bash
pip install -U openmim pip install -U openmim
mim install 'mmcv>=2.0.0rc1' mim install "mmcv>=2.0.0rc1"
``` ```
如果需要指定 mmcv 的版本,可以使用以下命令 如果需要指定 mmcv 的版本,可以使用以下命令
...@@ -103,7 +103,7 @@ Collecting mmcv==2.0.0rc1<br /> ...@@ -103,7 +103,7 @@ Collecting mmcv==2.0.0rc1<br />
```bash ```bash
pip install -U openmim pip install -U openmim
mim install 'mmcv-lite>=2.0.0rc1' mim install "mmcv-lite>=2.0.0rc1"
``` ```
## FAQ ## FAQ
......
...@@ -29,7 +29,7 @@ If version information is output, then PyTorch is installed. ...@@ -29,7 +29,7 @@ If version information is output, then PyTorch is installed.
```bash ```bash
pip install -U openmim pip install -U openmim
mim install 'mmcv>=2.0.0rc1' mim install "mmcv>=2.0.0rc1"
``` ```
If you find that the above installation command does not use a pre-built package ending with `.whl` but a source package ending with `.tar.gz`, you may not have a pre-build package corresponding to the PyTorch or CUDA or mmcv version, in which case you can [build mmcv from source](build.md). If you find that the above installation command does not use a pre-built package ending with `.whl` but a source package ending with `.tar.gz`, you may not have a pre-build package corresponding to the PyTorch or CUDA or mmcv version, in which case you can [build mmcv from source](build.md).
...@@ -66,7 +66,7 @@ you can first install it before installing MMCV to skip the installation of `ope ...@@ -66,7 +66,7 @@ you can first install it before installing MMCV to skip the installation of `ope
Alternatively, if it takes too long to install a dependency library, you can specify the pypi source Alternatively, if it takes too long to install a dependency library, you can specify the pypi source
```bash ```bash
mim install 'mmcv>=2.0.0rc1' -i https://pypi.tuna.tsinghua.edu.cn/simple mim install "mmcv>=2.0.0rc1" -i https://pypi.tuna.tsinghua.edu.cn/simple
``` ```
::: :::
...@@ -296,7 +296,7 @@ you can first install it before installing MMCV to skip the installation of `ope ...@@ -296,7 +296,7 @@ you can first install it before installing MMCV to skip the installation of `ope
Alternatively, if it takes too long to install a dependency library, you can specify the pypi source Alternatively, if it takes too long to install a dependency library, you can specify the pypi source
```bash ```bash
mim install mmcv -i https://pypi.tuna.tsinghua.edu.cn/simple mim install "mmcv>=2.0.0rc1" -i https://pypi.tuna.tsinghua.edu.cn/simple
``` ```
::: :::
......
...@@ -29,7 +29,7 @@ python -c 'import torch;print(torch.__version__)' ...@@ -29,7 +29,7 @@ python -c 'import torch;print(torch.__version__)'
```bash ```bash
pip install -U openmim pip install -U openmim
mim install 'mmcv>=2.0.0rc1' mim install "mmcv>=2.0.0rc1"
``` ```
如果发现上述的安装命令没有使用预编译包(以 `.whl` 结尾)而是使用源码包(以 `.tar.gz` 结尾)安装,则有可能是我们没有提供和当前环境的 PyTorch 版本、CUDA 版本相匹配的 mmcv 预编译包,此时,你可以[源码安装 mmcv](build.md) 如果发现上述的安装命令没有使用预编译包(以 `.whl` 结尾)而是使用源码包(以 `.tar.gz` 结尾)安装,则有可能是我们没有提供和当前环境的 PyTorch 版本、CUDA 版本相匹配的 mmcv 预编译包,此时,你可以[源码安装 mmcv](build.md)
...@@ -64,7 +64,7 @@ mim install mmcv==2.0.0rc1 ...@@ -64,7 +64,7 @@ mim install mmcv==2.0.0rc1
另外,如果安装依赖库的时间过长,可以指定 pypi 源 另外,如果安装依赖库的时间过长,可以指定 pypi 源
```bash ```bash
mim install 'mmcv>=2.0.0rc1' -i https://pypi.tuna.tsinghua.edu.cn/simple mim install "mmcv>=2.0.0rc1" -i https://pypi.tuna.tsinghua.edu.cn/simple
``` ```
::: :::
...@@ -317,7 +317,7 @@ PyTorch 版本是 1.8.1,你可以放心选择 1.8.x。 ...@@ -317,7 +317,7 @@ PyTorch 版本是 1.8.1,你可以放心选择 1.8.x。
另外,如果安装依赖库的时间过长,可以指定 pypi 源 另外,如果安装依赖库的时间过长,可以指定 pypi 源
```bash ```bash
pip install mmcv -f https://download.openmmlab.com/mmcv/dist/cu111/torch1.9.0/index.html -i https://pypi.tuna.tsinghua.edu.cn/simple pip install "mmcv>=2.0.0rc1" -f https://download.openmmlab.com/mmcv/dist/cu111/torch1.9.0/index.html -i https://pypi.tuna.tsinghua.edu.cn/simple
``` ```
::: :::
......
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