1、解决问题"module 'paddle.distributed' has no attribute 'get_rank', 原因,paddlepaddle和paddleocr的版本不一致,前者默认安装时为1.8.5,后者安装为2.0.2。
参考:https://blog.csdn.net/weixin_45451133/article/details/112316425,后,使用如下方式:
python -m pip install paddlepaddle==2.0.0rc1 -i https://mirror.baidu.com/pypi/simple
2、解决安装时的网络问题,报”Response"响应出错,最好使用百度镜像
参考: https://blog.csdn.net/u011817217/article/details/102662307
3、
#升级pip
python.exe -m pip install --upgrade pip
#移除
pip uninstall paddlepaddle
pip uninstall paddleocr
#重装
python -m pip install paddlepaddle -i https://mirror.baidu.com/pypi/simple
python -m pip install paddleocr -i https://mirror.baidu.com/pypi/simple
4、文字识别 - PaddleOCR简单使用
参考: https://blog.csdn.net/zaibeijixing/article/details/108753903