首页 > 其他分享 >PaddleOCR 训练工具Win 10下安装步骤

PaddleOCR 训练工具Win 10下安装步骤

时间:2023-06-15 16:01:54浏览次数:66  
标签:10 File Win py PaddleOCR paddleOCR PPOCRLabel line

   

          1、从这里面下载代码包,可能比较慢。

          2、进入这个目录:

           3、尝试运行

E:\>cd E:\paddleOCR\PaddleOCR\PPOCRLabel

E:\paddleOCR\PaddleOCR\PPOCRLabel>python PPOCRLabel.py --lang ch
Traceback (most recent call last):
  File "E:\paddleOCR\PaddleOCR\PPOCRLabel\PPOCRLabel.py", line 24, in <module>
    import xlrd
ModuleNotFoundError: No module named 'xlrd'

E:\paddleOCR\PaddleOCR\PPOCRLabel>pip install xlrd
Collecting xlrd
  Downloading xlrd-2.0.1-py2.py3-none-any.whl (96 kB)
     ---------------------------------------- 96.5/96.5 kB 69.0 kB/s eta 0:00:00
Installing collected packages: xlrd
Successfully installed xlrd-2.0.1

E:\paddleOCR\PaddleOCR\PPOCRLabel>python PPOCRLabel.py --lang ch
Traceback (most recent call last):
  File "E:\paddleOCR\PaddleOCR\PPOCRLabel\PPOCRLabel.py", line 40, in <module>
    from paddleocr import PaddleOCR, PPStructure
  File "E:\paddleOCR\PaddleOCR\PPOCRLabel\..\paddleocr.py", line 25, in <module>
    import cv2
ModuleNotFoundError: No module named 'cv2'

E:\paddleOCR\PaddleOCR\PPOCRLabel>pip install opencv-python -i http://mirrors.aliyun.com/pypi/simple/ --trusted-host mirrors.aliyun.com
Looking in indexes: http://mirrors.aliyun.com/pypi/simple/
Collecting opencv-python
Downloading http://mirrors.aliyun.com/pypi/packages/36/98/fab8d982e2e2b57bdebcad64c7e5b5a14ac91c657cac509b9cf3fbea49d2/opencv_python-4.7.0.72-cp37-abi3-win_amd64.whl (38.2 MB)
---------------------------------------- 38.2/38.2 MB 1.6 MB/s eta 0:00:00
Requirement already satisfied: numpy>=1.17.0 in d:\programdata\anaconda32\lib\site-packages (from opencv-python) (1.23.5)
Installing collected packages: opencv-python
Successfully installed opencv-python-4.7.0.72


E:\paddleOCR\PaddleOCR\PPOCRLabel>pip install opencv-contrib-python -i http://mirrors.aliyun.com/pypi/simple/ --trusted-host mirrors.aliyun.com
Looking in indexes: http://mirrors.aliyun.com/pypi/simple/
Collecting opencv-contrib-python
Downloading http://mirrors.aliyun.com/pypi/packages/f3/8b/9d010c60a2254e810ea2bd4a8645f9e12dff3ee8f2de12e7b8b38cdec561/opencv_contrib_python-4.7.0.72-cp37-abi3-win_amd64.whl (44.9 MB)
---------------------------------------- 44.9/44.9 MB 1.2 MB/s eta 0:00:00
Requirement already satisfied: numpy>=1.17.0 in d:\programdata\anaconda32\lib\site-packages (from opencv-contrib-python) (1.23.5)
Installing collected packages: opencv-contrib-python
Successfully installed opencv-contrib-python-4.7.0.72


E:\paddleOCR\PaddleOCR\PPOCRLabel>python PPOCRLabel.py --lang ch
Traceback (most recent call last):
File "E:\paddleOCR\PaddleOCR\PPOCRLabel\PPOCRLabel.py", line 40, in <module>
from paddleocr import PaddleOCR, PPStructure
File "E:\paddleOCR\PaddleOCR\PPOCRLabel\..\paddleocr.py", line 34, in <module>
from tools.infer import predict_system
File "E:\paddleOCR\PaddleOCR\PPOCRLabel\..\tools\infer\predict_system.py", line 32, in <module>
import tools.infer.predict_rec as predict_rec
File "E:\paddleOCR\PaddleOCR\PPOCRLabel\..\tools\infer\predict_rec.py", line 31, in <module>
from ppocr.postprocess import build_post_process
File "E:\paddleOCR\PaddleOCR\PPOCRLabel\..\ppocr\postprocess\__init__.py", line 24, in <module>
from .db_postprocess import DBPostProcess, DistillationDBPostProcess
File "E:\paddleOCR\PaddleOCR\PPOCRLabel\..\ppocr\postprocess\db_postprocess.py", line 25, in <module>
from shapely.geometry import Polygon
ModuleNotFoundError: No module named 'shapely'


E:\paddleOCR\PaddleOCR\PPOCRLabel>pip install shapely-*-*.whl -i http://mirrors.aliyun.com/pypi/simple/ --trusted-host mirrors.aliyun.com
WARNING: Requirement 'shapely-*-*.whl' looks like a filename, but the file does not exist
ERROR: shapely-*-*.whl is not a valid wheel filename.


E:\paddleOCR\PaddleOCR\PPOCRLabel>pip install shapely-*-*.whl
WARNING: Requirement 'shapely-*-*.whl' looks like a filename, but the file does not exist
ERROR: shapely-*-*.whl is not a valid wheel filename.


E:\paddleOCR\PaddleOCR\PPOCRLabel>pip install shapely -i http://mirrors.aliyun.com/pypi/simple/ --trusted-host mirrors.aliyun.com
Looking in indexes: http://mirrors.aliyun.com/pypi/simple/
Collecting shapely
Downloading http://mirrors.aliyun.com/pypi/packages/81/8a/7ac076a86b2632f1872284c5e60ed5f2fc26094875a85b35d9fa17b52504/shapely-2.0.1-cp310-cp310-win_amd64.whl (1.4 MB)
---------------------------------------- 1.4/1.4 MB 672.6 kB/s eta 0:00:00
Requirement already satisfied: numpy>=1.14 in d:\programdata\anaconda32\lib\site-packages (from shapely) (1.23.5)
Installing collected packages: shapely
Successfully installed shapely-2.0.1


E:\paddleOCR\PaddleOCR\PPOCRLabel>python PPOCRLabel.py --lang ch
Traceback (most recent call last):
File "E:\paddleOCR\PaddleOCR\PPOCRLabel\PPOCRLabel.py", line 40, in <module>
from paddleocr import PaddleOCR, PPStructure
File "E:\paddleOCR\PaddleOCR\PPOCRLabel\..\paddleocr.py", line 34, in <module>
from tools.infer import predict_system
File "E:\paddleOCR\PaddleOCR\PPOCRLabel\..\tools\infer\predict_system.py", line 32, in <module>
import tools.infer.predict_rec as predict_rec
File "E:\paddleOCR\PaddleOCR\PPOCRLabel\..\tools\infer\predict_rec.py", line 31, in <module>
from ppocr.postprocess import build_post_process
File "E:\paddleOCR\PaddleOCR\PPOCRLabel\..\ppocr\postprocess\__init__.py", line 24, in <module>
from .db_postprocess import DBPostProcess, DistillationDBPostProcess
File "E:\paddleOCR\PaddleOCR\PPOCRLabel\..\ppocr\postprocess\db_postprocess.py", line 26, in <module>
import pyclipper
ModuleNotFoundError: No module named 'pyclipper'

 

E:\paddleOCR\PaddleOCR\PPOCRLabel>pip install pyclipper -i http://mirrors.aliyun.com/pypi/simple/ --trusted-host mirrors.aliyun.com
Looking in indexes: http://mirrors.aliyun.com/pypi/simple/
Collecting pyclipper
Downloading http://mirrors.aliyun.com/pypi/packages/de/73/b8f63df0951f4a1eb498275236092073ff771f26d79a2b5be66aaf8802db/pyclipper-1.3.0.post4-cp310-cp310-win_amd64.whl (94 kB)
---------------------------------------- 94.5/94.5 kB 1.3 MB/s eta 0:00:00
Installing collected packages: pyclipper
Successfully installed pyclipper-1.3.0.post4

E:\paddleOCR\PaddleOCR\PPOCRLabel>python PPOCRLabel.py --lang ch
Traceback (most recent call last):
File "E:\paddleOCR\PaddleOCR\PPOCRLabel\PPOCRLabel.py", line 40, in <module>
from paddleocr import PaddleOCR, PPStructure
File "E:\paddleOCR\PaddleOCR\PPOCRLabel\..\paddleocr.py", line 34, in <module>
from tools.infer import predict_system
File "E:\paddleOCR\PaddleOCR\PPOCRLabel\..\tools\infer\predict_system.py", line 33, in <module>
import tools.infer.predict_det as predict_det
File "E:\paddleOCR\PaddleOCR\PPOCRLabel\..\tools\infer\predict_det.py", line 31, in <module>
from ppocr.data import create_operators, transform
File "E:\paddleOCR\PaddleOCR\PPOCRLabel\..\ppocr\data\__init__.py", line 35, in <module>
from ppocr.data.imaug import transform, create_operators
File "E:\paddleOCR\PaddleOCR\PPOCRLabel\..\ppocr\data\imaug\__init__.py", line 19, in <module>
from .iaa_augment import IaaAugment
File "E:\paddleOCR\PaddleOCR\PPOCRLabel\..\ppocr\data\imaug\iaa_augment.py", line 24, in <module>
import imgaug
ModuleNotFoundError: No module named 'imgaug'

E:\paddleOCR\PaddleOCR\PPOCRLabel>pip install imgaug -i http://mirrors.aliyun.com/pypi/simple/ --trusted-host mirrors.aliyun.com
Looking in indexes: http://mirrors.aliyun.com/pypi/simple/
Collecting imgaug
Downloading http://mirrors.aliyun.com/pypi/packages/66/b1/af3142c4a85cba6da9f4ebb5ff4e21e2616309552caca5e8acefe9840622/imgaug-0.4.0-py2.py3-none-any.whl (948 kB)
---------------------------------------- 948.0/948.0 kB 800.2 kB/s eta 0:00:00
Requirement already satisfied: imageio in d:\programdata\anaconda32\lib\site-packages (from imgaug) (2.26.0)
Requirement already satisfied: opencv-python in d:\programdata\anaconda32\lib\site-packages (from imgaug) (4.7.0.72)
Requirement already satisfied: Shapely in d:\programdata\anaconda32\lib\site-packages (from imgaug) (2.0.1)
Requirement already satisfied: matplotlib in d:\programdata\anaconda32\lib\site-packages (from imgaug) (3.7.0)
Requirement already satisfied: scikit-image>=0.14.2 in d:\programdata\anaconda32\lib\site-packages (from imgaug) (0.19.3)
Requirement already satisfied: six in d:\programdata\anaconda32\lib\site-packages (from imgaug) (1.16.0)
Requirement already satisfied: scipy in d:\programdata\anaconda32\lib\site-packages (from imgaug) (1.10.0)
Requirement already satisfied: Pillow in d:\programdata\anaconda32\lib\site-packages (from imgaug) (9.4.0)
Requirement already satisfied: numpy>=1.15 in d:\programdata\anaconda32\lib\site-packages (from imgaug) (1.23.5)
Requirement already satisfied: networkx>=2.2 in d:\programdata\anaconda32\lib\site-packages (from scikit-image>=0.14.2->imgaug) (2.8.4)
Requirement already satisfied: packaging>=20.0 in d:\programdata\anaconda32\lib\site-packages (from scikit-image>=0.14.2->imgaug) (22.0)
Requirement already satisfied: PyWavelets>=1.1.1 in d:\programdata\anaconda32\lib\site-packages (from scikit-image>=0.14.2->imgaug) (1.4.1)
Requirement already satisfied: tifffile>=2019.7.26 in d:\programdata\anaconda32\lib\site-packages (from scikit-image>=0.14.2->imgaug) (2021.7.2)
Requirement already satisfied: contourpy>=1.0.1 in d:\programdata\anaconda32\lib\site-packages (from matplotlib->imgaug) (1.0.5)
Requirement already satisfied: python-dateutil>=2.7 in d:\programdata\anaconda32\lib\site-packages (from matplotlib->imgaug) (2.8.2)
Requirement already satisfied: cycler>=0.10 in d:\programdata\anaconda32\lib\site-packages (from matplotlib->imgaug) (0.11.0)
Requirement already satisfied: fonttools>=4.22.0 in d:\programdata\anaconda32\lib\site-packages (from matplotlib->imgaug) (4.25.0)
Requirement already satisfied: kiwisolver>=1.0.1 in d:\programdata\anaconda32\lib\site-packages (from matplotlib->imgaug) (1.4.4)
Requirement already satisfied: pyparsing>=2.3.1 in d:\programdata\anaconda32\lib\site-packages (from matplotlib->imgaug) (3.0.9)
Installing collected packages: imgaug
Successfully installed imgaug-0.4.0

E:\paddleOCR\PaddleOCR\PPOCRLabel>python PPOCRLabel.py --lang ch
Traceback (most recent call last):
File "E:\paddleOCR\PaddleOCR\PPOCRLabel\PPOCRLabel.py", line 40, in <module>
from paddleocr import PaddleOCR, PPStructure
File "E:\paddleOCR\PaddleOCR\PPOCRLabel\..\paddleocr.py", line 34, in <module>
from tools.infer import predict_system
File "E:\paddleOCR\PaddleOCR\PPOCRLabel\..\tools\infer\predict_system.py", line 33, in <module>
import tools.infer.predict_det as predict_det
File "E:\paddleOCR\PaddleOCR\PPOCRLabel\..\tools\infer\predict_det.py", line 31, in <module>
from ppocr.data import create_operators, transform
File "E:\paddleOCR\PaddleOCR\PPOCRLabel\..\ppocr\data\__init__.py", line 35, in <module>
from ppocr.data.imaug import transform, create_operators
File "E:\paddleOCR\PaddleOCR\PPOCRLabel\..\ppocr\data\imaug\__init__.py", line 47, in <module>
from .ct_process import *
File "E:\paddleOCR\PaddleOCR\PPOCRLabel\..\ppocr\data\imaug\ct_process.py", line 22, in <module>
import Polygon as plg
ModuleNotFoundError: No module named 'Polygon'

 

E:\paddleOCR\PaddleOCR\PPOCRLabel>pip install Polygon3 -i https://pypi.tuna.tsinghua.edu.cn/simple
Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple
Collecting Polygon3
Using cached Polygon3-3.0.9.1-cp310-cp310-win_amd64.whl
Installing collected packages: Polygon3
Successfully installed Polygon3-3.0.9.1

E:\paddleOCR\PaddleOCR\PPOCRLabel>python PPOCRLabel.py --lang ch
Traceback (most recent call last):
File "E:\paddleOCR\PaddleOCR\PPOCRLabel\PPOCRLabel.py", line 40, in <module>
from paddleocr import PaddleOCR, PPStructure
File "E:\paddleOCR\PaddleOCR\PPOCRLabel\..\paddleocr.py", line 34, in <module>
from tools.infer import predict_system
File "E:\paddleOCR\PaddleOCR\PPOCRLabel\..\tools\infer\predict_system.py", line 33, in <module>
import tools.infer.predict_det as predict_det
File "E:\paddleOCR\PaddleOCR\PPOCRLabel\..\tools\infer\predict_det.py", line 31, in <module>
from ppocr.data import create_operators, transform
File "E:\paddleOCR\PaddleOCR\PPOCRLabel\..\ppocr\data\__init__.py", line 35, in <module>
from ppocr.data.imaug import transform, create_operators
File "E:\paddleOCR\PaddleOCR\PPOCRLabel\..\ppocr\data\imaug\__init__.py", line 48, in <module>
from .drrg_targets import DRRGTargets
File "E:\paddleOCR\PaddleOCR\PPOCRLabel\..\ppocr\data\imaug\drrg_targets.py", line 21, in <module>
from lanms import merge_quadrangle_n9 as la_nms
ModuleNotFoundError: No module named 'lanms'

E:\paddleOCR\PaddleOCR\PPOCRLabel>pip install lanms -i https://pypi.tuna.tsinghua.edu.cn/simple
Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple
Collecting lanms
Downloading https://pypi.tuna.tsinghua.edu.cn/packages/96/c0/50dc2c857ed060e907adaef31184413a7706e475c322236d346382e45195/lanms-1.0.2.tar.gz (973 kB)
---------------------------------------- 973.4/973.4 kB 1.5 MB/s eta 0:00:00
Preparing metadata (setup.py) ... error
error: subprocess-exited-with-error

× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> [12 lines of output]
Traceback (most recent call last):
File "<string>", line 2, in <module>
File "<pip-setuptools-caller>", line 34, in <module>
File "C:\Users\Administrator\AppData\Local\Temp\pip-install-78gv2eqm\lanms_5f89440877a447dab08601ebc80d9a9a\setup.py", line 27, in <module>
if subprocess.call(['make', '--always-make','-C', BASE_DIR]) != 0:
File "D:\ProgramData\anaconda32\lib\subprocess.py", line 345, in call
with Popen(*popenargs, **kwargs) as p:
File "D:\ProgramData\anaconda32\lib\subprocess.py", line 971, in __init__
self._execute_child(args, executable, preexec_fn, close_fds,
File "D:\ProgramData\anaconda32\lib\subprocess.py", line 1440, in _execute_child
hp, ht, pid, tid = _winapi.CreateProcess(executable, args,
FileNotFoundError: [WinError 2] 系统找不到指定的文件。
[end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.

E:\paddleOCR\PaddleOCR\PPOCRLabel>pip install Cython -i https://pypi.tuna.tsinghua.edu.cn/simple
Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple
Collecting Cython
Downloading https://pypi.tuna.tsinghua.edu.cn/packages/f2/01/e4e0c2c3fd528f0bfd7fc63edeb7b361cb4789fe173eb63feb5b398cf067/Cython-0.29.35-py2.py3-none-any.whl (988 kB)
---------------------------------------- 988.4/988.4 kB 2.4 MB/s eta 0:00:00
Installing collected packages: Cython
Successfully installed Cython-0.29.35

E:\paddleOCR\PaddleOCR\PPOCRLabel>

E:\paddleOCR\PaddleOCR\PPOCRLabel>python PPOCRLabel.py --lang ch
Traceback (most recent call last):
File "E:\paddleOCR\PaddleOCR\PPOCRLabel\PPOCRLabel.py", line 40, in <module>
from paddleocr import PaddleOCR, PPStructure
File "E:\paddleOCR\PaddleOCR\PPOCRLabel\..\paddleocr.py", line 34, in <module>
from tools.infer import predict_system
File "E:\paddleOCR\PaddleOCR\PPOCRLabel\..\tools\infer\predict_system.py", line 33, in <module>
import tools.infer.predict_det as predict_det
File "E:\paddleOCR\PaddleOCR\PPOCRLabel\..\tools\infer\predict_det.py", line 31, in <module>
from ppocr.data import create_operators, transform
File "E:\paddleOCR\PaddleOCR\PPOCRLabel\..\ppocr\data\__init__.py", line 35, in <module>
from ppocr.data.imaug import transform, create_operators
File "E:\paddleOCR\PaddleOCR\PPOCRLabel\..\ppocr\data\imaug\__init__.py", line 48, in <module>
from .drrg_targets import DRRGTargets
File "E:\paddleOCR\PaddleOCR\PPOCRLabel\..\ppocr\data\imaug\drrg_targets.py", line 21, in <module>
from lanms import merge_quadrangle_n9 as la_nms
ModuleNotFoundError: No module named 'lanms'

E:\paddleOCR\PaddleOCR\PPOCRLabel>pip install lanms-nova
Collecting lanms-nova
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectTimeoutError(<pip._vendor.urllib3.connection.HTTPSConnection object at 0x000001960ED404F0>, 'Connection to files.pythonhosted.org timed out. (connect timeout=15)')': /packages/96/d5/8f5d23d0fa49f96ff2b82d7047160311430199eeb15e5163f36b6213af2d/lanms-nova-1.0.3.tar.gz
Downloading lanms-nova-1.0.3.tar.gz (219 kB)
---------------------------------------- 219.3/219.3 kB 26.1 kB/s eta 0:00:00
Preparing metadata (setup.py) ... done
Requirement already satisfied: numpy in d:\programdata\anaconda32\lib\site-packages (from lanms-nova) (1.23.5)
Building wheels for collected packages: lanms-nova
Building wheel for lanms-nova (setup.py) ... done
Created wheel for lanms-nova: filename=lanms_nova-1.0.3-cp310-cp310-win_amd64.whl size=104582 sha256=025652169ca2f6bebf254bcad984c0de08092f4ecc69533766b80140e88ad2f5
Stored in directory: c:\users\administrator\appdata\local\pip\cache\wheels\ce\82\81\b98d44f2883bdef36abee58080124974ce56b0268a44a4a4d7
Successfully built lanms-nova
Installing collected packages: lanms-nova
Successfully installed lanms-nova-1.0.3

E:\paddleOCR\PaddleOCR\PPOCRLabel>python PPOCRLabel.py --lang ch
Traceback (most recent call last):
File "E:\paddleOCR\PaddleOCR\PPOCRLabel\PPOCRLabel.py", line 40, in <module>
from paddleocr import PaddleOCR, PPStructure
File "E:\paddleOCR\PaddleOCR\PPOCRLabel\..\paddleocr.py", line 34, in <module>
from tools.infer import predict_system
File "E:\paddleOCR\PaddleOCR\PPOCRLabel\..\tools\infer\predict_system.py", line 33, in <module>
import tools.infer.predict_det as predict_det
File "E:\paddleOCR\PaddleOCR\PPOCRLabel\..\tools\infer\predict_det.py", line 31, in <module>
from ppocr.data import create_operators, transform
File "E:\paddleOCR\PaddleOCR\PPOCRLabel\..\ppocr\data\__init__.py", line 37, in <module>
from ppocr.data.lmdb_dataset import LMDBDataSet, LMDBDataSetSR
File "E:\paddleOCR\PaddleOCR\PPOCRLabel\..\ppocr\data\lmdb_dataset.py", line 17, in <module>
import lmdb
ModuleNotFoundError: No module named 'lmdb'

E:\paddleOCR\PaddleOCR\PPOCRLabel>pip install lmdb
Collecting lmdb
Downloading lmdb-1.4.1-cp310-cp310-win_amd64.whl (100 kB)
---------------------------------------- 100.1/100.1 kB 12.9 kB/s eta 0:00:00
Installing collected packages: lmdb
Successfully installed lmdb-1.4.1

E:\paddleOCR\PaddleOCR\PPOCRLabel>python PPOCRLabel.py --lang ch
download https://paddleocr.bj.bcebos.com/PP-OCRv3/chinese/ch_PP-OCRv3_det_infer.tar to C:\Users\Administrator/.paddleocr/whl\det\ch\ch_PP-OCRv3_det_infer\ch_PP-OCRv3_det_infer.tar
100%|█████████████████████████████████████████████████████████████████████████████| 3.83M/3.83M [00:08<00:00, 442kiB/s]
download https://paddleocr.bj.bcebos.com/PP-OCRv3/chinese/ch_PP-OCRv3_rec_infer.tar to C:\Users\Administrator/.paddleocr/whl\rec\ch\ch_PP-OCRv3_rec_infer\ch_PP-OCRv3_rec_infer.tar
100%|█████████████████████████████████████████████████████████████████████████████| 11.9M/11.9M [00:26<00:00, 457kiB/s]
download https://paddleocr.bj.bcebos.com/dygraph_v2.0/ch/ch_ppocr_mobile_v2.0_cls_infer.tar to C:\Users\Administrator/.paddleocr/whl\cls\ch_ppocr_mobile_v2.0_cls_infer\ch_ppocr_mobile_v2.0_cls_infer.tar
100%|█████████████████████████████████████████████████████████████████████████████| 2.19M/2.19M [00:05<00:00, 399kiB/s]
OMP: Error #15: Initializing libiomp5md.dll, but found libiomp5md.dll already initialized.(需要执行 pip uninstall numpy)
OMP: Hint This means that multiple copies of the OpenMP runtime have been linked into the program. That is dangerous, since it can degrade performance or cause incorrect results. The best thing to do is to ensure that only a single OpenMP runtime is linked into the process, e.g. by avoiding static linking of the OpenMP runtime in any library. As an unsafe, unsupported, undocumented workaround you can set the environment variable KMP_DUPLICATE_LIB_OK=TRUE to allow the program to continue to execute, but that may cause crashes or silently produce incorrect results. For more information, please see http://www.intel.com/software/products/support/.

 

E:\paddleOCR\PaddleOCR\PPOCRLabel>pip uninstall numpy
Found existing installation: numpy 1.23.5
Uninstalling numpy-1.23.5:
Would remove:
d:\programdata\anaconda32\lib\site-packages\numpy-1.23.5.dist-info\*
d:\programdata\anaconda32\lib\site-packages\numpy\*
d:\programdata\anaconda32\scripts\f2py-script.py
d:\programdata\anaconda32\scripts\f2py.exe
Proceed (Y/n)? y
Successfully uninstalled numpy-1.23.5

E:\paddleOCR\PaddleOCR\PPOCRLabel>pip install numpy
ERROR: Could not find a version that satisfies the requirement numpy (from versions: none)
ERROR: No matching distribution found for numpy

E:\paddleOCR\PaddleOCR\PPOCRLabel>pip install numpy -i https://pypi.tuna.tsinghua.edu.cn/simple
Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple
Collecting numpy
Downloading https://pypi.tuna.tsinghua.edu.cn/packages/65/5d/46da284b0bf6cfbf04082c3c5e84399664d69e41c11a33587ad49b0c64e5/numpy-1.24.3-cp310-cp310-win_amd64.whl (14.8 MB)
---------------------------------------- 14.8/14.8 MB 204.6 kB/s eta 0:00:00
Installing collected packages: numpy
ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
gensim 4.3.0 requires FuzzyTM>=0.4.0, which is not installed.
numba 0.56.4 requires numpy<1.24,>=1.18, but you have numpy 1.24.3 which is incompatible.
Successfully installed numpy-1.24.3

E:\paddleOCR\PaddleOCR\PPOCRLabel>python PPOCRLabel.py --lang ch
D:\ProgramData\anaconda32\lib\site-packages\skimage\util\dtype.py:27: DeprecationWarning: `np.bool8` is a deprecated alias for `np.bool_`. (Deprecated NumPy 1.24)
np.bool8: (False, True),
download https://paddleocr.bj.bcebos.com/ppstructure/models/slanet/ch_ppstructure_mobile_v2.0_SLANet_infer.tar to C:\Users\Administrator/.paddleocr/whl\table\ch_ppstructure_mobile_v2.0_SLANet_infer\ch_ppstructure_mobile_v2.0_SLANet_infer.tar
100%|████████████████████████████████████████████████████████████████████████████| 10.3M/10.3M [03:01<00:00, 56.7kiB/s]
download https://paddleocr.bj.bcebos.com/ppstructure/models/layout/picodet_lcnet_x1_0_fgd_layout_cdla_infer.tar to C:\Users\Administrator/.paddleocr/whl\layout\picodet_lcnet_x1_0_fgd_layout_cdla_infer\picodet_lcnet_x1_0_fgd_layout_cdla_infer.tar
100%|█████████████████████████████████████████████████████████████████████████████| 10.1M/10.1M [00:50<00:00, 199kiB/s]
[2023/06/15 15:44:19] ppocr WARNING: When args.layout is false, args.ocr is automatically set to false

 

标签:10,File,Win,py,PaddleOCR,paddleOCR,PPOCRLabel,line
From: https://www.cnblogs.com/zhongjicainiao/p/17483139.html

相关文章

  • [-003-]-Python3+Unittest+Uiautomation Windows桌面App UI自动化之控件查找
    1、获取所有的子控件:control.GetChildren()2、获取首个子控件:control.GetFirstChildControl()3、获取最后一个子控件:control.GetLastChildControl()4、获取下一个兄弟控件:control.GetNextSiblingControl()5、获取前一个兄弟控件:control.GetPreviousSiblingContr......
  • Windows Server 2022 安装配置 MYSQL 及远程连接
    官方下载地址:https://dev.mysql.com/downloads/mysql/解压后新建my.ini放在解压目录下。配置环境变量:此电脑->属性->高级系统设置->环境变量->系统变量。找到path,新建D:\ProgramFiles\mysql-8.0.33-winx64\bin[mysqld]#设置3306端口port=3306#设置mysql的安装目录based......
  • MUR20100DCR-ASEMI贴片TO-263封装快恢复二极管MUR20100DCR
    编辑:llMUR20100DCR-ASEMI贴片TO-263封装快恢复二极管MUR20100DCR型号:MUR20100DCR品牌:ASEMI封装:TO-263正向电流:20A反向耐压:1000V浪涌电流:600A恢复时间:35ns工作温度:-50°C~150°C引脚数量:3类型:快恢复二极管特性:贴片二极管、快恢复二极管、共阳极二极管MUR20100DCR应用开关电源智能家......
  • DBeaver Ultimate Edtion 23.1 Multilingual (macOS, Linux, Windows) - 通用数据库工
    DBeaverUltimateEdtion23.1Multilingual(macOS,Linux,Windows)-通用数据库工具,现已集成ChatGPTOnetoolforalldatasources请访问原文链接:https://sysin.org/blog/dbeaver-23/,查看最新版。原创作品,转载请保留出处。作者主页:sysin.org通用数据库工具DBeaver是......
  • MUR20100DC-ASEMI贴片TO-263封装快恢复二极管MUR20100DC
    编辑:llMUR20100DC-ASEMI贴片TO-263封装快恢复二极管MUR20100DC型号:MUR20100DC品牌:ASEMI封装:TO-263正向电流:20A反向电压:1000V引脚数量:3恢复时间:35ns正向压降:1.8V类型:快恢复二极管特性:超快恢复二极管、贴片二极管、共阴极二极管工作温度:-50°C~150°C封装尺寸:如图MUR2......
  • JavaScript开发工具-WebStorm 2023 mac/win版
    WebStorm是一款由JetBrains开发的JavaScript开发工具,是专为JavaScript开发者设计的集成开发环境(IDE)。它提供了强大的功能和工具,能够帮助开发者更高效地编写、调试和维护JavaScript代码。→→↓↓载WebStorm2023mac/win版 WebStorm拥有一套丰富的功能,使得它成为JavaScript开......
  • WinCE下的文件路径
    在WinCE下,不能用相对路径,必须用绝对路径(FullPath) 来定位文件。如,在ProgramFiles/TestProgram目录下的abc.txt文件,只能用ProgramFiles/TestProgram/abc.txt来定位,而不能用abc.txt定位。如:privatevoidbutton1_Click(objectsender,EventArgse){stringp......
  • 最完美WIN11_Pro_22H2.22631.1835软件选装纯净版VIP50.1
    【系统简介】=============================================================1.本次更新母盘来自UUP_WIN11_PRO_22H2.22631.1835。进一步精简优化调整。2.只为呈现最好的作品,手工精简优化部分较多。3.OS版本号为22631.1835。个别要求高的就下MSDN吧,里面啥功能都有。4.集成《DrvCeo......
  • DC-DC电源模块直流隔离升压变换器高压稳压输出50V/110V/130V/150V/220V/250V/300V/500
    HRB系列隔离宽电压输入高电压稳压输出特点●效率高达 80%以上●1*2英寸标准封装●单电压输出●价格低●稳压输出●工作温度:-40℃~+85℃●阻燃封装,满足UL94-V0要求●温度特性好●可直接焊在PCB上应用HRBW2~40W系列模块电源是一种DC-DC升压变换器。该模块电源的输入......
  • Windows上安装Rust
    1.下载RUSTUP-INIT.EXE下载地址:https://www.rust-lang.org/tools/install2.配置环境变量,设置更新源#字节跳动的更新源RUSTUP_DIST_SERVER=https://rsproxy.cnRUSTUP_UPDATE_ROOT=https://rsproxy.cn/rustup3.执行RUSTUP-INIT.EXE开始安装,初学者建议按14.等着被恭......