From cf35373ba1ef566b1aa38da12a421458c3b67d30 Mon Sep 17 00:00:00 2001 From: LDOUBLEV Date: Fri, 8 Oct 2021 11:49:58 +0800 Subject: [PATCH] fix_doc --- doc/doc_ch/environment.md | 3 +++ doc/doc_en/environment_en.md | 2 ++ 2 files changed, 5 insertions(+) diff --git a/doc/doc_ch/environment.md b/doc/doc_ch/environment.md index ef7fb415..068c2a38 100644 --- a/doc/doc_ch/environment.md +++ b/doc/doc_ch/environment.md @@ -311,6 +311,7 @@ sudo nvidia-docker run --name ppocr -v $PWD:/paddle --shm-size=64G --network=hos # ctrl+P+Q可退出docker 容器,重新进入docker 容器使用如下命令 sudo docker container exec -it ppocr /bin/bash ``` + docker 环境中默认的python3 版本为python3.5,PaddleOCR 建议使用Python3.7,在执行python命令时,可以使用python3.7而不是python3。如下,输入python3.7命令并回车,可以看到使用的是python3.7版本。 ``` λ root@Linux /paddle python3.7 @@ -327,12 +328,14 @@ Type "help", "copyright", "credits" or "license" for more information. - 如果您的机器安装的是CUDA9或CUDA10,请运行以下命令安装 ```bash +# use python3.7 instead of python3 in docker python3 -m pip install paddlepaddle-gpu -i https://mirror.baidu.com/pypi/simple ``` - 如果您的机器是CPU,请运行以下命令安装 ```bash +# use python3.7 instead of python3 in docker python3 -m pip install paddlepaddle -i https://mirror.baidu.com/pypi/simple ``` diff --git a/doc/doc_en/environment_en.md b/doc/doc_en/environment_en.md index bc93cc74..a091955f 100644 --- a/doc/doc_en/environment_en.md +++ b/doc/doc_en/environment_en.md @@ -346,12 +346,14 @@ Type "help", "copyright", "credits" or "license" for more information. - If you have cuda9 or cuda10 installed on your machine, please run the following command to install ```bash +# use python3.7 instead of python3 in docker python3 -m pip install paddlepaddle-gpu -i https://mirror.baidu.com/pypi/simple ``` - If you only have cpu on your machine, please run the following command to install ```bash +# use python3.7 instead of python3 in docker python3 -m pip install paddlepaddle -i https://mirror.baidu.com/pypi/simple ``` -- GitLab