diff --git a/doc/doc_ch/installation.md b/doc/doc_ch/installation.md index d4b0a67f3cbdcb7d4f3efa6ea44ff881f7598a38..37af74cc3e9559721ca1270147a446fc6b160e7b 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 17d629c1a316652293149c73225ad086f83079cc..7e2fd6bf079caef2d509d4fd568b69deadf37650 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.