From b60806e3ed09c762ac6343dbf5c3419fe7bc6f80 Mon Sep 17 00:00:00 2001 From: weishengyu Date: Wed, 28 Oct 2020 11:23:03 +0800 Subject: [PATCH] change pip3 -> python3 -m pip --- doc/doc_ch/installation.md | 6 +++--- doc/doc_en/installation_en.md | 8 ++++---- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/doc/doc_ch/installation.md b/doc/doc_ch/installation.md index d4b0a67f..37af74cc 100644 --- a/doc/doc_ch/installation.md +++ b/doc/doc_ch/installation.md @@ -47,9 +47,9 @@ docker images hub.baidubce.com/paddlepaddle/paddle latest-gpu-cuda9.0-cudnn7-dev f56310dcc829 ``` -**2. 安装PaddlePaddle Fluid v2.0** +**2. 安装PaddlePaddle v2.0** ``` -pip3 install --upgrade pip +python3 -m pip install --upgrade pip 如果您的机器安装的是CUDA9或CUDA10,请运行以下命令安装 python3 -m pip install paddlepaddle-gpu==2.0.0b0 -i https://mirror.baidu.com/pypi/simple @@ -75,7 +75,7 @@ git clone https://gitee.com/paddlepaddle/PaddleOCR **4. 安装第三方库** ``` cd PaddleOCR -pip3 install -r requirments.txt +python3 -m pip install -r requirments.txt ``` 注意,windows环境下,建议从[这里](https://www.lfd.uci.edu/~gohlke/pythonlibs/#shapely)下载shapely安装包完成安装, diff --git a/doc/doc_en/installation_en.md b/doc/doc_en/installation_en.md index 17d629c1..7e2fd6bf 100644 --- a/doc/doc_en/installation_en.md +++ b/doc/doc_en/installation_en.md @@ -18,7 +18,7 @@ cd /home/Projects # You need to create a docker container for the first run, and do not need to run the current command when you run it again # Create a docker container named ppocr and map the current directory to the /paddle directory of the container -#If using CPU, use docker instead of nvidia-docker to create docker +# If using CPU, use docker instead of nvidia-docker to create docker sudo docker run --name ppocr -v $PWD:/paddle --network=host -it hub.baidubce.com/paddlepaddle/paddle:latest-gpu-cuda9.0-cudnn7-dev /bin/bash ``` If using CUDA9, please run the following command to create a container: @@ -49,9 +49,9 @@ docker images hub.baidubce.com/paddlepaddle/paddle latest-gpu-cuda9.0-cudnn7-dev f56310dcc829 ``` -**2. Install PaddlePaddle Fluid v2.0** +**2. Install PaddlePaddle v2.0** ``` -pip3 install --upgrade pip +python3 -m pip install --upgrade pip # If you have cuda9 or cuda10 installed on your machine, please run the following command to install python3 -m pip install paddlepaddle-gpu==2.0.0b0 -i https://mirror.baidu.com/pypi/simple @@ -77,7 +77,7 @@ git clone https://gitee.com/paddlepaddle/PaddleOCR **4. Install third-party libraries** ``` cd PaddleOCR -pip3 install -r requirments.txt +python3 -m pip install -r requirments.txt ``` If you getting this error `OSError: [WinError 126] The specified module could not be found` when you install shapely on windows. -- GitLab