pull/4262/head
LDOUBLEV 2021-10-08 11:49:58 +08:00
parent 2b4f62f98e
commit cf35373ba1
2 changed files with 5 additions and 0 deletions

View File

@ -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.5PaddleOCR 建议使用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
```

View File

@ -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
```