diff --git a/README.md b/README.md index 456d313..d4e4285 100644 --- a/README.md +++ b/README.md @@ -42,11 +42,8 @@ PPOCRLabelv2 is a semi-automatic graphic annotation tool suitable for OCR field, ```bash pip3 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 -i https://mirror.baidu.com/pypi/simple - # If you only have cpu on your machine, please run the following command to install -python3 -m pip install paddlepaddle -i https://mirror.baidu.com/pypi/simple +python3 -m pip install paddlepaddle ``` For more software version requirements, please refer to the instructions in [Installation Document](https://www.paddlepaddle.org.cn/install/quick) for operation. @@ -103,11 +100,10 @@ python PPOCRLabel.py --kie True # [KIE mode] for [detection + recognition + keyw ``` #### 1.2.3 Build and Install the Whl Package Locally -Compile and install a new whl package, where 0.0.0 is the version number, you can specify the new version in 'setup.py'. + ```bash cd ./PPOCRLabel -python3 setup.py bdist_wheel -pip3 install dist/PPOCRLabel-0.0.0-py2.py3-none-any.whl +pip3 install -e . ``` diff --git a/README_ch.md b/README_ch.md index ef3e18a..a52b661 100644 --- a/README_ch.md +++ b/README_ch.md @@ -42,11 +42,8 @@ PPOCRLabel是一款适用于OCR领域的半自动化图形标注工具,内置P ```bash pip3 install --upgrade pip -# 如果您的机器安装的是CUDA9或CUDA10,请运行以下命令安装 -python3 -m pip install paddlepaddle-gpu -i https://mirror.baidu.com/pypi/simple - # 如果您的机器是CPU,请运行以下命令安装 -python3 -m pip install paddlepaddle -i https://mirror.baidu.com/pypi/simple +python3 -m pip install paddlepaddle -i https://pypi.tuna.tsinghua.edu.cn/simple ``` 更多的版本需求,请参照[安装文档](https://www.paddlepaddle.org.cn/install/quick)中的说明进行操作。 @@ -101,12 +98,9 @@ python PPOCRLabel.py --lang ch #### 1.2.3 本地构建whl包并安装 -编译与安装新的whl包,其中0.0.0为版本号,可在 `setup.py` 中指定新版本。 - ```bash cd ./PPOCRLabel -python3 setup.py bdist_wheel -pip3 install dist/PPOCRLabel-0.0.0-py2.py3-none-any.whl -i https://mirror.baidu.com/pypi/simple +pip install -e . ```