Python3.11安装CnOCR

一、常规在线安装方法

1.1、查看python版本和pip已安装包
C:\Users\Administrator>python
Python 3.11.6 (tags/v3.11.6:8b6ee5b, Oct  2 2023, 14:57:12) [MSC v.1935 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> exit()

C:\Users\Administrator>pip list
Package    Version
---------- -------
pip        23.2.1
setuptools 65.5.0

[notice] A new release of pip is available: 23.2.1 -> 24.0
[notice] To update, run: python.exe -m pip install --upgrade pip
1.2、尝试从清华源(pip install cnocr -i https://pypi.tuna.tsinghua.edu.cn/simple)安装,出现异常“TimeoutError”:这个问题可能是由于网络连接不稳定或者下载速度过慢导致的。
C:\Users\Administrator>pip install cnocr -i https://pypi.tuna.tsinghua.edu.cn/simple
Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple
Collecting cnocr
  Downloading https://pypi.tuna.tsinghua.edu.cn/packages/b5/3d/c978986e04468dbbb3fb490cce28a33af7b7c6b287fa6308c489d3a65b0e/cnocr-2.3.0.2-py3-none-any.whl (222 kB)
     ---------------------------------------- 222.1/222.1 kB 847.4 kB/s eta 0:00:00
Collecting click (from cnocr)
  Downloading https://pypi.tuna.tsinghua.edu.cn/packages/00/2e/d53fa4befbf2cfa713304affc7ca780ce4fc1fd8710527771b58311a3229/click-8.1.7-py3-none-any.whl (97 kB)
     ---------------------------------------- 97.9/97.9 kB 626.4 kB/s eta 0:00:00
Collecting tqdm (from cnocr)
  Downloading https://pypi.tuna.tsinghua.edu.cn/packages/18/eb/fdb7eb9e48b7b02554e1664afd3bd3f117f6b6d6c5881438a0b055554f9b/tqdm-4.66.4-py3-none-any.whl (78 kB)
     ---------------------------------------- 78.3/78.3 kB 624.2 kB/s eta 0:00:00
Collecting torch>=1.8.0 (from cnocr)
  Downloading https://pypi.tuna.tsinghua.edu.cn/packages/2a/b7/a3cf5fd40334b9785cc83ee0c96b50603026eb3aa70210a33729018e7029/torch-2.3.0-cp311-cp311-win_amd64.whl (159.8 MB)
     ---------------------------------------- 159.8/159.8 MB 2.9 MB/s eta 0:00:00
Collecting torchvision>=0.9.0 (from cnocr)
  Downloading https://pypi.tuna.tsinghua.edu.cn/packages/12/c2/7c89c62f2b0a606070aa7cdb8af8af0c905562942778ebdd77600642c3b9/torchvision-0.18.0-cp311-cp311-win_amd64.whl (1.2 MB)
     ---------------------------------------- 1.2/1.2 MB 2.3 MB/s eta 0:00:00
Collecting numpy (from cnocr)
  Downloading https://pypi.tuna.tsinghua.edu.cn/packages/3f/6b/5610004206cf7f8e7ad91c5a85a8c71b2f2f8051a0c0c4d5916b76d6cbb2/numpy-1.26.4-cp311-cp311-win_amd64.whl (15.8 MB)
     ---------------------------------------- 15.8/15.8 MB 2.5 MB/s eta 0:00:00
Collecting pytorch-lightning>=2.0.0 (from cnocr)
  Downloading https://pypi.tuna.tsinghua.edu.cn/packages/15/e7/1fd6d37b1f447ca9ccece954e9f09e89b551af6fcab3ae5345b83dce8c1b/pytorch_lightning-2.2.4-py3-none-any.whl (802 kB)
     ---------------------------------------- 802.2/802.2 kB 1.7 MB/s eta 0:00:00
Collecting wandb (from cnocr)
  Downloading https://pypi.tuna.tsinghua.edu.cn/packages/c1/00/ce87cdf89c8b4d6414d65b3359b14684fc36477d838d3fdea38c1ae24638/wandb-0.17.0-py3-none-win_amd64.whl (6.7 MB)
     ---------------------------------------- 6.7/6.7 MB 1.9 MB/s eta 0:00:00
Collecting torchmetrics (from cnocr)
  Downloading https://pypi.tuna.tsinghua.edu.cn/packages/aa/d9/b235d32de0f496492b108db7aea0cda42c58b713e2547a149385f1dfc8e3/torchmetrics-1.4.0-py3-none-any.whl (868 kB)
     ---------------------------------------- 868.8/868.8 kB 1.8 MB/s eta 0:00:00
Collecting pillow>=5.3.0 (from cnocr)
  Downloading https://pypi.tuna.tsinghua.edu.cn/packages/0a/16/c83877524c47976f16703d2e05c363244bc1e60ab439e078b3cd046d07db/pillow-10.3.0-cp311-cp311-win_amd64.whl (2.5 MB)
     ---------------------------------------- 2.5/2.5 MB 1.7 MB/s eta 0:00:00
Collecting onnx (from cnocr)
  Downloading https://pypi.tuna.tsinghua.edu.cn/packages/aa/d0/0514d02d2e84e7bb48a105877eae4065e54d7dabb60d0b60214fe2677346/onnx-1.16.0-cp311-cp311-win_amd64.whl (14.4 MB)
     ---------------------------------------- 14.4/14.4 MB 2.8 MB/s eta 0:00:00
Collecting cnstd>=1.2.3.4 (from cnocr)
  Downloading https://pypi.tuna.tsinghua.edu.cn/packages/99/d8/70886b60c977c4359ba59bd37e0428c7165702d4cb73fb75994d8a97db2d/cnstd-1.2.3.6-py3-none-any.whl (246 kB)
     ---------------------------------------- 246.5/246.5 kB 1.0 MB/s eta 0:00:00
Collecting pyyaml (from cnstd>=1.2.3.4->cnocr)
  Downloading https://pypi.tuna.tsinghua.edu.cn/packages/b3/34/65bb4b2d7908044963ebf614fe0fdb080773fc7030d7e39c8d3eddcd4257/PyYAML-6.0.1-cp311-cp311-win_amd64.whl (144 kB)
     ---------------------------------------- 144.7/144.7 kB 1.7 MB/s eta 0:00:00
Collecting unidecode (from cnstd>=1.2.3.4->cnocr)
  Downloading https://pypi.tuna.tsinghua.edu.cn/packages/84/b7/6ec57841fb67c98f52fc8e4a2d96df60059637cba077edc569a302a8ffc7/Unidecode-1.3.8-py3-none-any.whl (235 kB)
     ---------------------------------------- 235.5/235.5 kB 2.9 MB/s eta 0:00:00
Collecting scipy (from cnstd>=1.2.3.4->cnocr)
  Downloading https://pypi.tuna.tsinghua.edu.cn/packages/d4/a1/d4adf25b6d2bef8d0ad1682829dcfcba97f3f96bb5b6f137bc3e41003cc7/scipy-1.13.0-cp311-cp311-win_amd64.whl (46.2 MB)
     ---------------------------------------- 46.2/46.2 MB 308.6 kB/s eta 0:00:00
Collecting pandas (from cnstd>=1.2.3.4->cnocr)
  Downloading https://pypi.tuna.tsinghua.edu.cn/packages/ab/63/966db1321a0ad55df1d1fe51505d2cdae191b84c907974873817b0a6e849/pandas-2.2.2-cp311-cp311-win_amd64.whl (11.6 MB)
     ---------------------------------------- 11.6/11.6 MB 373.8 kB/s eta 0:00:00
Collecting opencv-python>=4.0.0 (from cnstd>=1.2.3.4->cnocr)
  Downloading https://pypi.tuna.tsinghua.edu.cn/packages/c7/ec/9dabb6a9abfdebb3c45b0cc52dec901caafef2b2c7e7d6a839ed86d81e91/opencv_python-4.9.0.80-cp37-abi3-win_amd64.whl (38.6 MB)
     ---------------------------------------- 38.6/38.6 MB 379.8 kB/s eta 0:00:00
Collecting shapely (from cnstd>=1.2.3.4->cnocr)
  Downloading https://pypi.tuna.tsinghua.edu.cn/packages/6a/5c/3330f499ca860f0b92db4ceaebd7090096a83c1ea3ae7d8d4c6111761b82/shapely-2.0.4-cp311-cp311-win_amd64.whl (1.4 MB)
     ---------------------------------------- 1.4/1.4 MB 319.1 kB/s eta 0:00:00
Collecting Polygon3 (from cnstd>=1.2.3.4->cnocr)
  Downloading https://pypi.tuna.tsinghua.edu.cn/packages/1f/26/eea4112be43c8b7345477ad9150d499303494f32fb5951cb0f6e9104045b/Polygon3-3.0.9.1.tar.gz (39 kB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
Collecting pyclipper (from cnstd>=1.2.3.4->cnocr)
  Downloading https://pypi.tuna.tsinghua.edu.cn/packages/f3/ec/56da9f2d5d846f144530d5313a05078afb7cfc26ec179be5af35f057d064/pyclipper-1.3.0.post5-cp311-cp311-win_amd64.whl (108 kB)
     ---------------------------------------- 108.3/108.3 kB 36.1 kB/s eta 0:00:00
Collecting matplotlib (from cnstd>=1.2.3.4->cnocr)
  Downloading https://pypi.tuna.tsinghua.edu.cn/packages/2d/d5/6227732ecab9165586966ccb54301e3164f61b470c954c4cf6940654fbe1/matplotlib-3.8.4-cp311-cp311-win_amd64.whl (7.7 MB)
     ---------------------------------------- 7.7/7.7 MB 126.2 kB/s eta 0:00:00
Collecting seaborn (from cnstd>=1.2.3.4->cnocr)
  Downloading https://pypi.tuna.tsinghua.edu.cn/packages/83/11/00d3c3dfc25ad54e731d91449895a79e4bf2384dc3ac01809010ba88f6d5/seaborn-0.13.2-py3-none-any.whl (294 kB)
     ---------------------------------------- 294.9/294.9 kB 109.8 kB/s eta 0:00:00
Collecting huggingface-hub (from cnstd>=1.2.3.4->cnocr)
  Downloading https://pypi.tuna.tsinghua.edu.cn/packages/21/2b/516f82c5ba9beb184b24c11976be2ad5e80fb7fe6b2796c887087144445e/huggingface_hub-0.23.0-py3-none-any.whl (401 kB)
     ---------------------------------------- 401.2/401.2 kB 106.0 kB/s eta 0:00:00
Collecting fsspec[http]>=2022.5.0 (from pytorch-lightning>=2.0.0->cnocr)
  Downloading https://pypi.tuna.tsinghua.edu.cn/packages/93/6d/66d48b03460768f523da62a57a7e14e5e95fdf339d79e996ce3cecda2cdb/fsspec-2024.3.1-py3-none-any.whl (171 kB)
     ---------------------------------------- 172.0/172.0 kB 117.6 kB/s eta 0:00:00
Collecting packaging>=20.0 (from pytorch-lightning>=2.0.0->cnocr)
  Downloading https://pypi.tuna.tsinghua.edu.cn/packages/49/df/1fceb2f8900f8639e278b056416d49134fb8d84c5942ffaa01ad34782422/packaging-24.0-py3-none-any.whl (53 kB)
     ---------------------------------------- 53.5/53.5 kB 277.2 kB/s eta 0:00:00
Collecting typing-extensions>=4.4.0 (from pytorch-lightning>=2.0.0->cnocr)
  Downloading https://pypi.tuna.tsinghua.edu.cn/packages/01/f3/936e209267d6ef7510322191003885de524fc48d1b43269810cd589ceaf5/typing_extensions-4.11.0-py3-none-any.whl (34 kB)
Collecting lightning-utilities>=0.8.0 (from pytorch-lightning>=2.0.0->cnocr)
  Downloading https://pypi.tuna.tsinghua.edu.cn/packages/5e/9e/e7768a8e363fc6f0c978bb7a0aa7641f10d80be60000e788ef2f01d34a7c/lightning_utilities-0.11.2-py3-none-any.whl (26 kB)
Collecting filelock (from torch>=1.8.0->cnocr)
  Downloading https://pypi.tuna.tsinghua.edu.cn/packages/41/24/0b023b6537dfc9bae2c779353998e3e99ac7dfff4222fc6126650e93c3f3/filelock-3.14.0-py3-none-any.whl (12 kB)
Collecting sympy (from torch>=1.8.0->cnocr)
  Downloading https://pypi.tuna.tsinghua.edu.cn/packages/d2/05/e6600db80270777c4a64238a98d442f0fd07cc8915be2a1c16da7f2b9e74/sympy-1.12-py3-none-any.whl (5.7 MB)
     ---------------------------------------- 5.7/5.7 MB 176.3 kB/s eta 0:00:00
Collecting networkx (from torch>=1.8.0->cnocr)
  Downloading https://pypi.tuna.tsinghua.edu.cn/packages/38/e9/5f72929373e1a0e8d142a130f3f97e6ff920070f87f91c4e13e40e0fba5a/networkx-3.3-py3-none-any.whl (1.7 MB)
     ---------------------------------------- 1.7/1.7 MB 203.9 kB/s eta 0:00:00
Collecting jinja2 (from torch>=1.8.0->cnocr)
  Downloading https://pypi.tuna.tsinghua.edu.cn/packages/31/80/3a54838c3fb461f6fec263ebf3a3a41771bd05190238de3486aae8540c36/jinja2-3.1.4-py3-none-any.whl (133 kB)
     ---------------------------------------- 133.3/133.3 kB 154.6 kB/s eta 0:00:00
Collecting mkl<=2021.4.0,>=2021.1.1 (from torch>=1.8.0->cnocr)
  Downloading https://pypi.tuna.tsinghua.edu.cn/packages/fe/1c/5f6dbf18e8b73e0a5472466f0ea8d48ce9efae39bd2ff38cebf8dce61259/mkl-2021.4.0-py2.py3-none-win_amd64.whl (228.5 MB)
     --------------- ------------------------ 90.1/228.5 MB 926.0 kB/s eta 0:02:30
ERROR: Exception:
Traceback (most recent call last):
  File "C:\Users\Administrator\AppData\Local\Programs\Python\Python311\Lib\site-packages\pip\_vendor\urllib3\response.py", line 438, in _error_catcher
    yield
  File "C:\Users\Administrator\AppData\Local\Programs\Python\Python311\Lib\site-packages\pip\_vendor\urllib3\response.py", line 561, in read
    data = self._fp_read(amt) if not fp_closed else b""
           ^^^^^^^^^^^^^^^^^^
  File "C:\Users\Administrator\AppData\Local\Programs\Python\Python311\Lib\site-packages\pip\_vendor\urllib3\response.py", line 527, in _fp_read
    return self._fp.read(amt) if amt is not None else self._fp.read()
           ^^^^^^^^^^^^^^^^^^
  File "C:\Users\Administrator\AppData\Local\Programs\Python\Python311\Lib\site-packages\pip\_vendor\cachecontrol\filewrapper.py", line 90, in read
    data = self.__fp.read(amt)
           ^^^^^^^^^^^^^^^^^^^
  File "C:\Users\Administrator\AppData\Local\Programs\Python\Python311\Lib\http\client.py", line 466, in read
    s = self.fp.read(amt)
        ^^^^^^^^^^^^^^^^^
  File "C:\Users\Administrator\AppData\Local\Programs\Python\Python311\Lib\socket.py", line 706, in readinto
    return self._sock.recv_into(b)
           ^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\Administrator\AppData\Local\Programs\Python\Python311\Lib\ssl.py", line 1311, in recv_into
    return self.read(nbytes, buffer)
           ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\Administrator\AppData\Local\Programs\Python\Python311\Lib\ssl.py", line 1167, in read
    return self._sslobj.read(len, buffer)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TimeoutError: The read operation timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\Administrator\AppData\Local\Programs\Python\Python311\Lib\site-packages\pip\_internal\cli\base_command.py", line 180, in exc_logging_wrapper
    status = run_func(*args)
             ^^^^^^^^^^^^^^^
  File "C:\Users\Administrator\AppData\Local\Programs\Python\Python311\Lib\site-packages\pip\_internal\cli\req_command.py", line 248, in wrapper
    return func(self, options, args)
           ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\Administrator\AppData\Local\Programs\Python\Python311\Lib\site-packages\pip\_internal\commands\install.py", line 377, in run
    requirement_set = resolver.resolve(
                      ^^^^^^^^^^^^^^^^^
  File "C:\Users\Administrator\AppData\Local\Programs\Python\Python311\Lib\site-packages\pip\_internal\resolution\resolvelib\resolver.py", line 92, in resolve
    result = self._result = resolver.resolve(
                            ^^^^^^^^^^^^^^^^^
  File "C:\Users\Administrator\AppData\Local\Programs\Python\Python311\Lib\site-packages\pip\_vendor\resolvelib\resolvers.py", line 546, in resolve
    state = resolution.resolve(requirements, max_rounds=max_rounds)
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\Administrator\AppData\Local\Programs\Python\Python311\Lib\site-packages\pip\_vendor\resolvelib\resolvers.py", line 427, in resolve
    failure_causes = self._attempt_to_pin_criterion(name)
                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\Administrator\AppData\Local\Programs\Python\Python311\Lib\site-packages\pip\_vendor\resolvelib\resolvers.py", line 239, in _attempt_to_pin_criterion
    criteria = self._get_updated_criteria(candidate)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\Administrator\AppData\Local\Programs\Python\Python311\Lib\site-packages\pip\_vendor\resolvelib\resolvers.py", line 230, in _get_updated_criteria
    self._add_to_criteria(criteria, requirement, parent=candidate)
  File "C:\Users\Administrator\AppData\Local\Programs\Python\Python311\Lib\site-packages\pip\_vendor\resolvelib\resolvers.py", line 173, in _add_to_criteria
    if not criterion.candidates:
  File "C:\Users\Administrator\AppData\Local\Programs\Python\Python311\Lib\site-packages\pip\_vendor\resolvelib\structs.py", line 156, in __bool__
    return bool(self._sequence)
           ^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\Administrator\AppData\Local\Programs\Python\Python311\Lib\site-packages\pip\_internal\resolution\resolvelib\found_candidates.py", line 155, in __bool__
    return any(self)
           ^^^^^^^^^
  File "C:\Users\Administrator\AppData\Local\Programs\Python\Python311\Lib\site-packages\pip\_internal\resolution\resolvelib\found_candidates.py", line 143, in <genexpr>
    return (c for c in iterator if id(c) not in self._incompatible_ids)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\Administrator\AppData\Local\Programs\Python\Python311\Lib\site-packages\pip\_internal\resolution\resolvelib\found_candidates.py", line 47, in _iter_built
    candidate = func()
                ^^^^^^
  File "C:\Users\Administrator\AppData\Local\Programs\Python\Python311\Lib\site-packages\pip\_internal\resolution\resolvelib\factory.py", line 206, in _make_candidate_from_link
    self._link_candidate_cache[link] = LinkCandidate(
                                       ^^^^^^^^^^^^^^
  File "C:\Users\Administrator\AppData\Local\Programs\Python\Python311\Lib\site-packages\pip\_internal\resolution\resolvelib\candidates.py", line 293, in __init__
    super().__init__(
  File "C:\Users\Administrator\AppData\Local\Programs\Python\Python311\Lib\site-packages\pip\_internal\resolution\resolvelib\candidates.py", line 156, in __init__
    self.dist = self._prepare()
                ^^^^^^^^^^^^^^^
  File "C:\Users\Administrator\AppData\Local\Programs\Python\Python311\Lib\site-packages\pip\_internal\resolution\resolvelib\candidates.py", line 225, in _prepare
    dist = self._prepare_distribution()
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\Administrator\AppData\Local\Programs\Python\Python311\Lib\site-packages\pip\_internal\resolution\resolvelib\candidates.py", line 304, in _prepare_distribution
    return preparer.prepare_linked_requirement(self._ireq, parallel_builds=True)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\Administrator\AppData\Local\Programs\Python\Python311\Lib\site-packages\pip\_internal\operations\prepare.py", line 538, in prepare_linked_requirement
    return self._prepare_linked_requirement(req, parallel_builds)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\Administrator\AppData\Local\Programs\Python\Python311\Lib\site-packages\pip\_internal\operations\prepare.py", line 609, in _prepare_linked_requirement
    local_file = unpack_url(
                 ^^^^^^^^^^^
  File "C:\Users\Administrator\AppData\Local\Programs\Python\Python311\Lib\site-packages\pip\_internal\operations\prepare.py", line 166, in unpack_url
    file = get_http_url(
           ^^^^^^^^^^^^^
  File "C:\Users\Administrator\AppData\Local\Programs\Python\Python311\Lib\site-packages\pip\_internal\operations\prepare.py", line 107, in get_http_url
    from_path, content_type = download(link, temp_dir.path)
                              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\Administrator\AppData\Local\Programs\Python\Python311\Lib\site-packages\pip\_internal\network\download.py", line 147, in __call__
    for chunk in chunks:
  File "C:\Users\Administrator\AppData\Local\Programs\Python\Python311\Lib\site-packages\pip\_internal\cli\progress_bars.py", line 53, in _rich_progress_bar
    for chunk in iterable:
  File "C:\Users\Administrator\AppData\Local\Programs\Python\Python311\Lib\site-packages\pip\_internal\network\utils.py", line 63, in response_chunks
    for chunk in response.raw.stream(
  File "C:\Users\Administrator\AppData\Local\Programs\Python\Python311\Lib\site-packages\pip\_vendor\urllib3\response.py", line 622, in stream
    data = self.read(amt=amt, decode_content=decode_content)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\Administrator\AppData\Local\Programs\Python\Python311\Lib\site-packages\pip\_vendor\urllib3\response.py", line 560, in read
    with self._error_catcher():
  File "C:\Users\Administrator\AppData\Local\Programs\Python\Python311\Lib\contextlib.py", line 155, in __exit__
    self.gen.throw(typ, value, traceback)
  File "C:\Users\Administrator\AppData\Local\Programs\Python\Python311\Lib\site-packages\pip\_vendor\urllib3\response.py", line 443, in _error_catcher
    raise ReadTimeoutError(self._pool, None, "Read timed out.")
pip._vendor.urllib3.exceptions.ReadTimeoutError: HTTPSConnectionPool(host='pypi.tuna.tsinghua.edu.cn', port=443): Read timed out.

[notice] A new release of pip is available: 23.2.1 -> 24.0
[notice] To update, run: python.exe -m pip install --upgrade pip
 1.3、根据异常提示尝试更换使用阿里云的下载源

“pip install cnocr -i https://mirrors.aliyun.com/pypi/simple”

C:\Users\Administrator>pip install cnocr -i https://mirrors.aliyun.com/pypi/simple
Looking in indexes: https://mirrors.aliyun.com/pypi/simple
Collecting cnocr
  Downloading https://mirrors.aliyun.com/pypi/packages/b5/3d/c978986e04468dbbb3fb490cce28a33af7b7c6b287fa6308c489d3a65b0e/cnocr-2.3.0.2-py3-none-any.whl (222 kB)
     ---------------------------------------- 222.1/222.1 kB 713.3 kB/s eta 0:00:00
Collecting click (from cnocr)
  Downloading https://mirrors.aliyun.com/pypi/packages/00/2e/d53fa4befbf2cfa713304affc7ca780ce4fc1fd8710527771b58311a3229/click-8.1.7-py3-none-any.whl (97 kB)
     ---------------------------------------- 97.9/97.9 kB 804.6 kB/s eta 0:00:00
Collecting tqdm (from cnocr)
  Downloading https://mirrors.aliyun.com/pypi/packages/18/eb/fdb7eb9e48b7b02554e1664afd3bd3f117f6b6d6c5881438a0b055554f9b/tqdm-4.66.4-py3-none-any.whl (78 kB)
     ---------------------------------------- 78.3/78.3 kB 723.8 kB/s eta 0:00:00
Collecting torch>=1.8.0 (from cnocr)
  Downloading https://mirrors.aliyun.com/pypi/packages/2a/b7/a3cf5fd40334b9785cc83ee0c96b50603026eb3aa70210a33729018e7029/torch-2.3.0-cp311-cp311-win_amd64.whl (159.8 MB)
     ---------------------------------------- 159.8/159.8 MB 572.2 kB/s eta 0:00:00
Collecting torchvision>=0.9.0 (from cnocr)
  Downloading https://mirrors.aliyun.com/pypi/packages/12/c2/7c89c62f2b0a606070aa7cdb8af8af0c905562942778ebdd77600642c3b9/torchvision-0.18.0-cp311-cp311-win_amd64.whl (1.2 MB)
     ---------------------------------------- 1.2/1.2 MB 677.1 kB/s eta 0:00:00
Collecting numpy (from cnocr)
  Downloading https://mirrors.aliyun.com/pypi/packages/3f/6b/5610004206cf7f8e7ad91c5a85a8c71b2f2f8051a0c0c4d5916b76d6cbb2/numpy-1.26.4-cp311-cp311-win_amd64.whl (15.8 MB)
     ---------------------------------------- 15.8/15.8 MB 666.8 kB/s eta 0:00:00
Collecting pytorch-lightning>=2.0.0 (from cnocr)
  Downloading https://mirrors.aliyun.com/pypi/packages/15/e7/1fd6d37b1f447ca9ccece954e9f09e89b551af6fcab3ae5345b83dce8c1b/pytorch_lightning-2.2.4-py3-none-any.whl (802 kB)
     ---------------------------------------- 802.2/802.2 kB 756.4 kB/s eta 0:00:00
Collecting wandb (from cnocr)
  Downloading https://mirrors.aliyun.com/pypi/packages/c1/00/ce87cdf89c8b4d6414d65b3359b14684fc36477d838d3fdea38c1ae24638/wandb-0.17.0-py3-none-win_amd64.whl (6.7 MB)
     ---------------------------------------- 6.7/6.7 MB 745.3 kB/s eta 0:00:00
Collecting torchmetrics (from cnocr)
  Downloading https://mirrors.aliyun.com/pypi/packages/aa/d9/b235d32de0f496492b108db7aea0cda42c58b713e2547a149385f1dfc8e3/torchmetrics-1.4.0-py3-none-any.whl (868 kB)
     ---------------------------------------- 868.8/868.8 kB 774.1 kB/s eta 0:00:00
Collecting pillow>=5.3.0 (from cnocr)
  Downloading https://mirrors.aliyun.com/pypi/packages/0a/16/c83877524c47976f16703d2e05c363244bc1e60ab439e078b3cd046d07db/pillow-10.3.0-cp311-cp311-win_amd64.whl (2.5 MB)
     ---------------------------------------- 2.5/2.5 MB 720.3 kB/s eta 0:00:00
Collecting onnx (from cnocr)
  Downloading https://mirrors.aliyun.com/pypi/packages/aa/d0/0514d02d2e84e7bb48a105877eae4065e54d7dabb60d0b60214fe2677346/onnx-1.16.0-cp311-cp311-win_amd64.whl (14.4 MB)
     ---------------------------------------- 14.4/14.4 MB 749.7 kB/s eta 0:00:00
Collecting cnstd>=1.2.3.4 (from cnocr)
  Downloading https://mirrors.aliyun.com/pypi/packages/99/d8/70886b60c977c4359ba59bd37e0428c7165702d4cb73fb75994d8a97db2d/cnstd-1.2.3.6-py3-none-any.whl (246 kB)
     ---------------------------------------- 246.5/246.5 kB 891.6 kB/s eta 0:00:00
Collecting pyyaml (from cnstd>=1.2.3.4->cnocr)
  Downloading https://mirrors.aliyun.com/pypi/packages/b3/34/65bb4b2d7908044963ebf614fe0fdb080773fc7030d7e39c8d3eddcd4257/PyYAML-6.0.1-cp311-cp311-win_amd64.whl (144 kB)
     ---------------------------------------- 144.7/144.7 kB 715.2 kB/s eta 0:00:00
Collecting unidecode (from cnstd>=1.2.3.4->cnocr)
  Downloading https://mirrors.aliyun.com/pypi/packages/84/b7/6ec57841fb67c98f52fc8e4a2d96df60059637cba077edc569a302a8ffc7/Unidecode-1.3.8-py3-none-any.whl (235 kB)
     ---------------------------------------- 235.5/235.5 kB 719.7 kB/s eta 0:00:00
Collecting scipy (from cnstd>=1.2.3.4->cnocr)
  Downloading https://mirrors.aliyun.com/pypi/packages/d4/a1/d4adf25b6d2bef8d0ad1682829dcfcba97f3f96bb5b6f137bc3e41003cc7/scipy-1.13.0-cp311-cp311-win_amd64.whl (46.2 MB)
     ---------------------------------------- 46.2/46.2 MB 771.5 kB/s eta 0:00:00
Collecting pandas (from cnstd>=1.2.3.4->cnocr)
  Downloading https://mirrors.aliyun.com/pypi/packages/ab/63/966db1321a0ad55df1d1fe51505d2cdae191b84c907974873817b0a6e849/pandas-2.2.2-cp311-cp311-win_amd64.whl (11.6 MB)
     ---------------------------------------- 11.6/11.6 MB 791.9 kB/s eta 0:00:00
Collecting opencv-python>=4.0.0 (from cnstd>=1.2.3.4->cnocr)
  Downloading https://mirrors.aliyun.com/pypi/packages/c7/ec/9dabb6a9abfdebb3c45b0cc52dec901caafef2b2c7e7d6a839ed86d81e91/opencv_python-4.9.0.80-cp37-abi3-win_amd64.whl (38.6 MB)
     ---------------------------------------- 38.6/38.6 MB 682.6 kB/s eta 0:00:00
Collecting shapely (from cnstd>=1.2.3.4->cnocr)
  Downloading https://mirrors.aliyun.com/pypi/packages/6a/5c/3330f499ca860f0b92db4ceaebd7090096a83c1ea3ae7d8d4c6111761b82/shapely-2.0.4-cp311-cp311-win_amd64.whl (1.4 MB)
     ---------------------------------------- 1.4/1.4 MB 817.6 kB/s eta 0:00:00
Collecting Polygon3 (from cnstd>=1.2.3.4->cnocr)
  Downloading https://mirrors.aliyun.com/pypi/packages/1f/26/eea4112be43c8b7345477ad9150d499303494f32fb5951cb0f6e9104045b/Polygon3-3.0.9.1.tar.gz (39 kB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
Collecting pyclipper (from cnstd>=1.2.3.4->cnocr)
  Downloading https://mirrors.aliyun.com/pypi/packages/f3/ec/56da9f2d5d846f144530d5313a05078afb7cfc26ec179be5af35f057d064/pyclipper-1.3.0.post5-cp311-cp311-win_amd64.whl (108 kB)
     ---------------------------------------- 108.3/108.3 kB 891.6 kB/s eta 0:00:00
Collecting matplotlib (from cnstd>=1.2.3.4->cnocr)
  Downloading https://mirrors.aliyun.com/pypi/packages/2d/d5/6227732ecab9165586966ccb54301e3164f61b470c954c4cf6940654fbe1/matplotlib-3.8.4-cp311-cp311-win_amd64.whl (7.7 MB)
     ---------------------------------------- 7.7/7.7 MB 838.1 kB/s eta 0:00:00
Collecting seaborn (from cnstd>=1.2.3.4->cnocr)
  Downloading https://mirrors.aliyun.com/pypi/packages/83/11/00d3c3dfc25ad54e731d91449895a79e4bf2384dc3ac01809010ba88f6d5/seaborn-0.13.2-py3-none-any.whl (294 kB)
     ---------------------------------------- 294.9/294.9 kB 793.0 kB/s eta 0:00:00
Collecting huggingface-hub (from cnstd>=1.2.3.4->cnocr)
  Downloading https://mirrors.aliyun.com/pypi/packages/21/2b/516f82c5ba9beb184b24c11976be2ad5e80fb7fe6b2796c887087144445e/huggingface_hub-0.23.0-py3-none-any.whl (401 kB)
     ---------------------------------------- 401.2/401.2 kB 807.7 kB/s eta 0:00:00
Collecting fsspec[http]>=2022.5.0 (from pytorch-lightning>=2.0.0->cnocr)
  Downloading https://mirrors.aliyun.com/pypi/packages/93/6d/66d48b03460768f523da62a57a7e14e5e95fdf339d79e996ce3cecda2cdb/fsspec-2024.3.1-py3-none-any.whl (171 kB)
     ---------------------------------------- 172.0/172.0 kB 860.4 kB/s eta 0:00:00
Collecting packaging>=20.0 (from pytorch-lightning>=2.0.0->cnocr)
  Downloading https://mirrors.aliyun.com/pypi/packages/49/df/1fceb2f8900f8639e278b056416d49134fb8d84c5942ffaa01ad34782422/packaging-24.0-py3-none-any.whl (53 kB)
     ---------------------------------------- 53.5/53.5 kB 697.5 kB/s eta 0:00:00
Collecting typing-extensions>=4.4.0 (from pytorch-lightning>=2.0.0->cnocr)
  Downloading https://mirrors.aliyun.com/pypi/packages/01/f3/936e209267d6ef7510322191003885de524fc48d1b43269810cd589ceaf5/typing_extensions-4.11.0-py3-none-any.whl (34 kB)
Collecting lightning-utilities>=0.8.0 (from pytorch-lightning>=2.0.0->cnocr)
  Downloading https://mirrors.aliyun.com/pypi/packages/5e/9e/e7768a8e363fc6f0c978bb7a0aa7641f10d80be60000e788ef2f01d34a7c/lightning_utilities-0.11.2-py3-none-any.whl (26 kB)
Collecting filelock (from torch>=1.8.0->cnocr)
  Downloading https://mirrors.aliyun.com/pypi/packages/41/24/0b023b6537dfc9bae2c779353998e3e99ac7dfff4222fc6126650e93c3f3/filelock-3.14.0-py3-none-any.whl (12 kB)
Collecting sympy (from torch>=1.8.0->cnocr)
  Downloading https://mirrors.aliyun.com/pypi/packages/d2/05/e6600db80270777c4a64238a98d442f0fd07cc8915be2a1c16da7f2b9e74/sympy-1.12-py3-none-any.whl (5.7 MB)
     ---------------------------------------- 5.7/5.7 MB 790.6 kB/s eta 0:00:00
Collecting networkx (from torch>=1.8.0->cnocr)
  Downloading https://mirrors.aliyun.com/pypi/packages/38/e9/5f72929373e1a0e8d142a130f3f97e6ff920070f87f91c4e13e40e0fba5a/networkx-3.3-py3-none-any.whl (1.7 MB)
     ---------------------------------------- 1.7/1.7 MB 813.9 kB/s eta 0:00:00
Collecting jinja2 (from torch>=1.8.0->cnocr)
  Downloading https://mirrors.aliyun.com/pypi/packages/31/80/3a54838c3fb461f6fec263ebf3a3a41771bd05190238de3486aae8540c36/jinja2-3.1.4-py3-none-any.whl (133 kB)
     ---------------------------------------- 133.3/133.3 kB 878.8 kB/s eta 0:00:00
Collecting mkl<=2021.4.0,>=2021.1.1 (from torch>=1.8.0->cnocr)
  Downloading https://mirrors.aliyun.com/pypi/packages/fe/1c/5f6dbf18e8b73e0a5472466f0ea8d48ce9efae39bd2ff38cebf8dce61259/mkl-2021.4.0-py2.py3-none-win_amd64.whl (228.5 MB)
     ---------------------------------------- 228.5/228.5 MB 740.2 kB/s eta 0:00:00
Collecting pretty-errors==1.2.25 (from torchmetrics->cnocr)
  Downloading https://mirrors.aliyun.com/pypi/packages/6d/8e/2df7467a15eae40e26c476683962fdb810cd1b36676603e2f139b4abbeaf/pretty_errors-1.2.25-py3-none-any.whl (17 kB)
Collecting colorama (from pretty-errors==1.2.25->torchmetrics->cnocr)
  Downloading https://mirrors.aliyun.com/pypi/packages/d1/d6/3965ed04c63042e047cb6a3e6ed1a63a35087b6a609aa3a15ed8ac56c221/colorama-0.4.6-py2.py3-none-any.whl (25 kB)
Collecting protobuf>=3.20.2 (from onnx->cnocr)
  Downloading https://mirrors.aliyun.com/pypi/packages/8d/83/d70cb6fedb1f38318af01f0035f2103732630af0ca323c0198122b49323b/protobuf-5.26.1-cp310-abi3-win_amd64.whl (420 kB)
     ---------------------------------------- 420.9/420.9 kB 750.8 kB/s eta 0:00:00
Collecting docker-pycreds>=0.4.0 (from wandb->cnocr)
  Downloading https://mirrors.aliyun.com/pypi/packages/f5/e8/f6bd1eee09314e7e6dee49cbe2c5e22314ccdb38db16c9fc72d2fa80d054/docker_pycreds-0.4.0-py2.py3-none-any.whl (9.0 kB)
Collecting gitpython!=3.1.29,>=1.0.0 (from wandb->cnocr)
  Downloading https://mirrors.aliyun.com/pypi/packages/e9/bd/cc3a402a6439c15c3d4294333e13042b915bbeab54edc457c723931fed3f/GitPython-3.1.43-py3-none-any.whl (207 kB)
     ---------------------------------------- 207.3/207.3 kB 788.4 kB/s eta 0:00:00
Collecting platformdirs (from wandb->cnocr)
  Downloading https://mirrors.aliyun.com/pypi/packages/b0/15/1691fa5aaddc0c4ea4901c26f6137c29d5f6673596fe960a0340e8c308e1/platformdirs-4.2.1-py3-none-any.whl (17 kB)
Collecting protobuf>=3.20.2 (from onnx->cnocr)
  Downloading https://mirrors.aliyun.com/pypi/packages/ad/6e/1bed3b7c904cc178cb8ee8dbaf72934964452b3de95b7a63412591edb93c/protobuf-4.25.3-cp310-abi3-win_amd64.whl (413 kB)
     ---------------------------------------- 413.4/413.4 kB 697.5 kB/s eta 0:00:00
Collecting psutil>=5.0.0 (from wandb->cnocr)
  Downloading https://mirrors.aliyun.com/pypi/packages/93/52/3e39d26feae7df0aa0fd510b14012c3678b36ed068f7d78b8d8784d61f0e/psutil-5.9.8-cp37-abi3-win_amd64.whl (255 kB)
     ---------------------------------------- 255.1/255.1 kB 746.5 kB/s eta 0:00:00
Collecting requests<3,>=2.0.0 (from wandb->cnocr)
  Downloading https://mirrors.aliyun.com/pypi/packages/70/8e/0e2d847013cb52cd35b38c009bb167a1a26b2ce6cd6965bf26b47bc0bf44/requests-2.31.0-py3-none-any.whl (62 kB)
     ---------------------------------------- 62.6/62.6 kB 662.5 kB/s eta 0:00:00
Collecting sentry-sdk>=1.0.0 (from wandb->cnocr)
  Downloading https://mirrors.aliyun.com/pypi/packages/cf/58/cfbed3fdc41891e9d2b45a5dbe706dcaf35429eb1446e30a504bb2ea9ea2/sentry_sdk-2.1.1-py2.py3-none-any.whl (277 kB)
     ---------------------------------------- 277.3/277.3 kB 683.0 kB/s eta 0:00:00
Collecting setproctitle (from wandb->cnocr)
  Downloading https://mirrors.aliyun.com/pypi/packages/7e/ba/f6da9ba74e8c2c662e932b27a01025c1bee2846222f6a2e87a69c259772f/setproctitle-1.3.3-cp311-cp311-win_amd64.whl (11 kB)
Requirement already satisfied: setuptools in c:\users\administrator\appdata\local\programs\python\python311\lib\site-packages (from wandb->cnocr) (65.5.0)
Collecting six>=1.4.0 (from docker-pycreds>=0.4.0->wandb->cnocr)
  Downloading https://mirrors.aliyun.com/pypi/packages/d9/5a/e7c31adbe875f2abbb91bd84cf2dc52d792b5a01506781dbcf25c91daf11/six-1.16.0-py2.py3-none-any.whl (11 kB)
Collecting aiohttp!=4.0.0a0,!=4.0.0a1 (from fsspec[http]>=2022.5.0->pytorch-lightning>=2.0.0->cnocr)
  Downloading https://mirrors.aliyun.com/pypi/packages/a4/69/0d415c6d8450842652ce01b29f43416a0f30122b75899de01485623c7850/aiohttp-3.9.5-cp311-cp311-win_amd64.whl (370 kB)
     ---------------------------------------- 370.8/370.8 kB 641.6 kB/s eta 0:00:00
Collecting gitdb<5,>=4.0.1 (from gitpython!=3.1.29,>=1.0.0->wandb->cnocr)
  Downloading https://mirrors.aliyun.com/pypi/packages/fd/5b/8f0c4a5bb9fd491c277c21eff7ccae71b47d43c4446c9d0c6cff2fe8c2c4/gitdb-4.0.11-py3-none-any.whl (62 kB)
     ---------------------------------------- 62.7/62.7 kB 846.5 kB/s eta 0:00:00
Collecting intel-openmp==2021.* (from mkl<=2021.4.0,>=2021.1.1->torch>=1.8.0->cnocr)
  Downloading https://mirrors.aliyun.com/pypi/packages/6f/21/b590c0cc3888b24f2ac9898c41d852d7454a1695fbad34bee85dba6dc408/intel_openmp-2021.4.0-py2.py3-none-win_amd64.whl (3.5 MB)
     ---------------------------------------- 3.5/3.5 MB 768.5 kB/s eta 0:00:00
Collecting tbb==2021.* (from mkl<=2021.4.0,>=2021.1.1->torch>=1.8.0->cnocr)
  Downloading https://mirrors.aliyun.com/pypi/packages/7b/2d/1e1c70fae8ace27e6200fb71c2372a9aeac2baba474b1609d7d466e969b4/tbb-2021.12.0-py3-none-win_amd64.whl (286 kB)
     ---------------------------------------- 286.4/286.4 kB 802.7 kB/s eta 0:00:00
Collecting charset-normalizer<4,>=2 (from requests<3,>=2.0.0->wandb->cnocr)
  Downloading https://mirrors.aliyun.com/pypi/packages/57/ec/80c8d48ac8b1741d5b963797b7c0c869335619e13d4744ca2f67fc11c6fc/charset_normalizer-3.3.2-cp311-cp311-win_amd64.whl (99 kB)
     ---------------------------------------- 99.9/99.9 kB 814.8 kB/s eta 0:00:00
Collecting idna<4,>=2.5 (from requests<3,>=2.0.0->wandb->cnocr)
  Downloading https://mirrors.aliyun.com/pypi/packages/e5/3e/741d8c82801c347547f8a2a06aa57dbb1992be9e948df2ea0eda2c8b79e8/idna-3.7-py3-none-any.whl (66 kB)
     ---------------------------------------- 66.8/66.8 kB 912.8 kB/s eta 0:00:00
Collecting urllib3<3,>=1.21.1 (from requests<3,>=2.0.0->wandb->cnocr)
  Downloading https://mirrors.aliyun.com/pypi/packages/a2/73/a68704750a7679d0b6d3ad7aa8d4da8e14e151ae82e6fee774e6e0d05ec8/urllib3-2.2.1-py3-none-any.whl (121 kB)
     ---------------------------------------- 121.1/121.1 kB 886.6 kB/s eta 0:00:00
Collecting certifi>=2017.4.17 (from requests<3,>=2.0.0->wandb->cnocr)
  Downloading https://mirrors.aliyun.com/pypi/packages/ba/06/a07f096c664aeb9f01624f858c3add0a4e913d6c96257acb4fce61e7de14/certifi-2024.2.2-py3-none-any.whl (163 kB)
     ---------------------------------------- 163.8/163.8 kB 756.3 kB/s eta 0:00:00
Collecting MarkupSafe>=2.0 (from jinja2->torch>=1.8.0->cnocr)
  Downloading https://mirrors.aliyun.com/pypi/packages/b7/a2/c78a06a9ec6d04b3445a949615c4c7ed86a0b2eb68e44e7541b9d57067cc/MarkupSafe-2.1.5-cp311-cp311-win_amd64.whl (17 kB)
Collecting contourpy>=1.0.1 (from matplotlib->cnstd>=1.2.3.4->cnocr)
  Downloading https://mirrors.aliyun.com/pypi/packages/d6/4f/76d0dd0bca417691918484c26c74dd9dd44fbf528bbfeb30d754886e2c54/contourpy-1.2.1-cp311-cp311-win_amd64.whl (188 kB)
     ---------------------------------------- 188.2/188.2 kB 812.5 kB/s eta 0:00:00
Collecting cycler>=0.10 (from matplotlib->cnstd>=1.2.3.4->cnocr)
  Downloading https://mirrors.aliyun.com/pypi/packages/e7/05/c19819d5e3d95294a6f5947fb9b9629efb316b96de511b418c53d245aae6/cycler-0.12.1-py3-none-any.whl (8.3 kB)
Collecting fonttools>=4.22.0 (from matplotlib->cnstd>=1.2.3.4->cnocr)
  Downloading https://mirrors.aliyun.com/pypi/packages/c5/d4/f426fa1ca42e47bcfff0c878fa9d49d9c03379d00903a7c178f95b97867a/fonttools-4.51.0-cp311-cp311-win_amd64.whl (2.2 MB)
     ---------------------------------------- 2.2/2.2 MB 815.1 kB/s eta 0:00:00
Collecting kiwisolver>=1.3.1 (from matplotlib->cnstd>=1.2.3.4->cnocr)
  Downloading https://mirrors.aliyun.com/pypi/packages/1e/37/d3c2d4ba2719059a0f12730947bbe1ad5ee8bff89e8c35319dcb2c9ddb4c/kiwisolver-1.4.5-cp311-cp311-win_amd64.whl (56 kB)
     ---------------------------------------- 56.1/56.1 kB 739.9 kB/s eta 0:00:00
Collecting pyparsing>=2.3.1 (from matplotlib->cnstd>=1.2.3.4->cnocr)
  Downloading https://mirrors.aliyun.com/pypi/packages/9d/ea/6d76df31432a0e6fdf81681a895f009a4bb47b3c39036db3e1b528191d52/pyparsing-3.1.2-py3-none-any.whl (103 kB)
     ---------------------------------------- 103.2/103.2 kB 659.6 kB/s eta 0:00:00
Collecting python-dateutil>=2.7 (from matplotlib->cnstd>=1.2.3.4->cnocr)
  Downloading https://mirrors.aliyun.com/pypi/packages/ec/57/56b9bcc3c9c6a792fcbaf139543cee77261f3651ca9da0c93f5c1221264b/python_dateutil-2.9.0.post0-py2.py3-none-any.whl (229 kB)
     ---------------------------------------- 229.9/229.9 kB 739.6 kB/s eta 0:00:00
Collecting pytz>=2020.1 (from pandas->cnstd>=1.2.3.4->cnocr)
  Downloading https://mirrors.aliyun.com/pypi/packages/9c/3d/a121f284241f08268b21359bd425f7d4825cffc5ac5cd0e1b3d82ffd2b10/pytz-2024.1-py2.py3-none-any.whl (505 kB)
     ---------------------------------------- 505.5/505.5 kB 720.9 kB/s eta 0:00:00
Collecting tzdata>=2022.7 (from pandas->cnstd>=1.2.3.4->cnocr)
  Downloading https://mirrors.aliyun.com/pypi/packages/65/58/f9c9e6be752e9fcb8b6a0ee9fb87e6e7a1f6bcab2cdc73f02bb7ba91ada0/tzdata-2024.1-py2.py3-none-any.whl (345 kB)
     ---------------------------------------- 345.4/345.4 kB 766.9 kB/s eta 0:00:00
Collecting mpmath>=0.19 (from sympy->torch>=1.8.0->cnocr)
  Downloading https://mirrors.aliyun.com/pypi/packages/43/e3/7d92a15f894aa0c9c4b49b8ee9ac9850d6e63b03c9c32c0367a13ae62209/mpmath-1.3.0-py3-none-any.whl (536 kB)
     ---------------------------------------- 536.2/536.2 kB 673.4 kB/s eta 0:00:00
Collecting aiosignal>=1.1.2 (from aiohttp!=4.0.0a0,!=4.0.0a1->fsspec[http]>=2022.5.0->pytorch-lightning>=2.0.0->cnocr)
  Downloading https://mirrors.aliyun.com/pypi/packages/76/ac/a7305707cb852b7e16ff80eaf5692309bde30e2b1100a1fcacdc8f731d97/aiosignal-1.3.1-py3-none-any.whl (7.6 kB)
Collecting attrs>=17.3.0 (from aiohttp!=4.0.0a0,!=4.0.0a1->fsspec[http]>=2022.5.0->pytorch-lightning>=2.0.0->cnocr)
  Downloading https://mirrors.aliyun.com/pypi/packages/e0/44/827b2a91a5816512fcaf3cc4ebc465ccd5d598c45cefa6703fcf4a79018f/attrs-23.2.0-py3-none-any.whl (60 kB)
     ---------------------------------------- 60.8/60.8 kB 814.7 kB/s eta 0:00:00
Collecting frozenlist>=1.1.1 (from aiohttp!=4.0.0a0,!=4.0.0a1->fsspec[http]>=2022.5.0->pytorch-lightning>=2.0.0->cnocr)
  Downloading https://mirrors.aliyun.com/pypi/packages/b3/21/c5aaffac47fd305d69df46cfbf118768cdf049a92ee6b0b5cb029d449dcf/frozenlist-1.4.1-cp311-cp311-win_amd64.whl (50 kB)
     ---------------------------------------- 50.5/50.5 kB 648.7 kB/s eta 0:00:00
Collecting multidict<7.0,>=4.5 (from aiohttp!=4.0.0a0,!=4.0.0a1->fsspec[http]>=2022.5.0->pytorch-lightning>=2.0.0->cnocr)
  Downloading https://mirrors.aliyun.com/pypi/packages/88/aa/ea217cb18325aa05cb3e3111c19715f1e97c50a4a900cbc20e54648de5f5/multidict-6.0.5-cp311-cp311-win_amd64.whl (28 kB)
Collecting yarl<2.0,>=1.0 (from aiohttp!=4.0.0a0,!=4.0.0a1->fsspec[http]>=2022.5.0->pytorch-lightning>=2.0.0->cnocr)
  Downloading https://mirrors.aliyun.com/pypi/packages/27/41/945ae9a80590e4fb0be166863c6e63d75e4b35789fa3a61ff1dbdcdc220f/yarl-1.9.4-cp311-cp311-win_amd64.whl (76 kB)
     ---------------------------------------- 76.7/76.7 kB 707.2 kB/s eta 0:00:00
Collecting smmap<6,>=3.0.1 (from gitdb<5,>=4.0.1->gitpython!=3.1.29,>=1.0.0->wandb->cnocr)
  Downloading https://mirrors.aliyun.com/pypi/packages/a7/a5/10f97f73544edcdef54409f1d839f6049a0d79df68adbc1ceb24d1aaca42/smmap-5.0.1-py3-none-any.whl (24 kB)
Building wheels for collected packages: Polygon3
  Building wheel for Polygon3 (pyproject.toml) ... done
  Created wheel for Polygon3: filename=Polygon3-3.0.9.1-cp311-cp311-win_amd64.whl size=48409 sha256=8158fd427cb39858f089ab473d573ae1fd7fb8f8dc1e0733f13e7c6ee6feb3dc
  Stored in directory: c:\users\administrator\appdata\local\pip\cache\wheels\00\f9\c5\f156ef396d88ae498910f405368ddf97368d2ac5d1e59452b2
Successfully built Polygon3
Installing collected packages: tbb, pytz, pyclipper, Polygon3, mpmath, intel-openmp, urllib3, unidecode, tzdata, typing-extensions, sympy, smmap, six, setproctitle, pyyaml, pyparsing, psutil, protobuf, platformdirs, pillow, packaging, numpy, networkx, multidict, mkl, MarkupSafe, kiwisolver, idna, fsspec, frozenlist, fonttools, filelock, cycler, colorama, charset-normalizer, certifi, attrs, yarl, tqdm, shapely, sentry-sdk, scipy, requests, python-dateutil, pretty-errors, opencv-python, onnx, lightning-utilities, jinja2, gitdb, docker-pycreds, contourpy, click, aiosignal, torch, pandas, matplotlib, huggingface-hub, gitpython, aiohttp, wandb, torchvision, torchmetrics, seaborn, pytorch-lightning, cnstd, cnocr
Successfully installed MarkupSafe-2.1.5 Polygon3-3.0.9.1 aiohttp-3.9.5 aiosignal-1.3.1 attrs-23.2.0 certifi-2024.2.2 charset-normalizer-3.3.2 click-8.1.7 cnocr-2.3.0.2 cnstd-1.2.3.6 colorama-0.4.6 contourpy-1.2.1 cycler-0.12.1 docker-pycreds-0.4.0 filelock-3.14.0 fonttools-4.51.0 frozenlist-1.4.1 fsspec-2024.3.1 gitdb-4.0.11 gitpython-3.1.43 huggingface-hub-0.23.0 idna-3.7 intel-openmp-2021.4.0 jinja2-3.1.4 kiwisolver-1.4.5 lightning-utilities-0.11.2 matplotlib-3.8.4 mkl-2021.4.0 mpmath-1.3.0 multidict-6.0.5 networkx-3.3 numpy-1.26.4 onnx-1.16.0 opencv-python-4.9.0.80 packaging-24.0 pandas-2.2.2 pillow-10.3.0 platformdirs-4.2.1 pretty-errors-1.2.25 protobuf-4.25.3 psutil-5.9.8 pyclipper-1.3.0.post5 pyparsing-3.1.2 python-dateutil-2.9.0.post0 pytorch-lightning-2.2.4 pytz-2024.1 pyyaml-6.0.1 requests-2.31.0 scipy-1.13.0 seaborn-0.13.2 sentry-sdk-2.1.1 setproctitle-1.3.3 shapely-2.0.4 six-1.16.0 smmap-5.0.1 sympy-1.12 tbb-2021.12.0 torch-2.3.0 torchmetrics-1.4.0 torchvision-0.18.0 tqdm-4.66.4 typing-extensions-4.11.0 tzdata-2024.1 unidecode-1.3.8 urllib3-2.2.1 wandb-0.17.0 yarl-1.9.4

[notice] A new release of pip is available: 23.2.1 -> 24.0
[notice] To update, run: python.exe -m pip install --upgrade pip
1.4、更换为阿里云下载源后成功安装,查看pip list结果
C:\Users\Administrator>pip list
Package             Version
------------------- -----------
aiohttp             3.9.5
aiosignal           1.3.1
attrs               23.2.0
certifi             2024.2.2
charset-normalizer  3.3.2
click               8.1.7
cnocr               2.3.0.2
cnstd               1.2.3.6
colorama            0.4.6
contourpy           1.2.1
cycler              0.12.1
docker-pycreds      0.4.0
filelock            3.14.0
fonttools           4.51.0
frozenlist          1.4.1
fsspec              2024.3.1
gitdb               4.0.11
GitPython           3.1.43
huggingface-hub     0.23.0
idna                3.7
intel-openmp        2021.4.0
Jinja2              3.1.4
kiwisolver          1.4.5
lightning-utilities 0.11.2
MarkupSafe          2.1.5
matplotlib          3.8.4
mkl                 2021.4.0
mpmath              1.3.0
multidict           6.0.5
networkx            3.3
numpy               1.26.4
onnx                1.16.0
opencv-python       4.9.0.80
packaging           24.0
pandas              2.2.2
pillow              10.3.0
pip                 23.2.1
platformdirs        4.2.1
Polygon3            3.0.9.1
pretty-errors       1.2.25
protobuf            4.25.3
psutil              5.9.8
pyclipper           1.3.0.post5
pyparsing           3.1.2
python-dateutil     2.9.0.post0
pytorch-lightning   2.2.4
pytz                2024.1
PyYAML              6.0.1
requests            2.31.0
scipy               1.13.0
seaborn             0.13.2
sentry-sdk          2.1.1
setproctitle        1.3.3
setuptools          65.5.0
shapely             2.0.4
six                 1.16.0
smmap               5.0.1
sympy               1.12
tbb                 2021.12.0
torch               2.3.0
torchmetrics        1.4.0
torchvision         0.18.0
tqdm                4.66.4
typing_extensions   4.11.0
tzdata              2024.1
Unidecode           1.3.8
urllib3             2.2.1
wandb               0.17.0
yarl                1.9.4
1.5、简单测试功能(说明:测试内容来源自CnOCR

单行文字识别测试:

如果明确知道待识别的图片是单行文字图片(如下图),可以使用类函数 CnOcr.ocr_for_single_line() 进行识别。这样就省掉了文字检测的时间,速度会快一倍以上。

测试图片:

调用代码如下:

from cnocr import CnOcr

img_fp = 'helloworld.jpg'
ocr = CnOcr()
out = ocr.ocr_for_single_line(img_fp)
print(out)

把图片和python代码放同一个目录下:

在IDLE shell查看运行结果,提示缺少“onnxruntime”模块

======================================================================================= RESTART: D:/cnocr_test.py ======================================================================================
Traceback (most recent call last):
  File "D:/cnocr_test.py", line 4, in <module>
    ocr = CnOcr()
  File "C:\Users\Administrator\AppData\Local\Programs\Python\Python311\Lib\site-packages\cnocr\cn_ocr.py", line 155, in __init__
    self.rec_model = rec_cls(
  File "C:\Users\Administrator\AppData\Local\Programs\Python\Python311\Lib\site-packages\cnocr\recognizer.py", line 144, in __init__
    self._model = self._get_model(
  File "C:\Users\Administrator\AppData\Local\Programs\Python\Python311\Lib\site-packages\cnocr\recognizer.py", line 201, in _get_model
    import onnxruntime as ort
ModuleNotFoundError: No module named 'onnxruntime'

下载“onnxruntime”模块

C:\Users\Administrator>pip install onnxruntime -i https://mirrors.aliyun.com/pypi/simple
Looking in indexes: https://mirrors.aliyun.com/pypi/simple
Collecting onnxruntime
  Downloading https://mirrors.aliyun.com/pypi/packages/ea/ef/202d3fb284c5936f8aa6d87021963e8e8f776834aa18e8f440c268827639/onnxruntime-1.17.3-cp311-cp311-win_amd64.whl (5.6 MB)
     ---------------------------------------- 5.6/5.6 MB 774.2 kB/s eta 0:00:00
Collecting coloredlogs (from onnxruntime)
  Downloading https://mirrors.aliyun.com/pypi/packages/a7/06/3d6badcf13db419e25b07041d9c7b4a2c331d3f4e7134445ec5df57714cd/coloredlogs-15.0.1-py2.py3-none-any.whl (46 kB)
     ---------------------------------------- 46.0/46.0 kB 761.2 kB/s eta 0:00:00
Collecting flatbuffers (from onnxruntime)
  Downloading https://mirrors.aliyun.com/pypi/packages/41/f0/7e988a019bc54b2dbd0ad4182ef2d53488bb02e58694cd79d61369e85900/flatbuffers-24.3.25-py2.py3-none-any.whl (26 kB)
Requirement already satisfied: numpy>=1.24.2 in c:\users\administrator\appdata\local\programs\python\python311\lib\site-packages (from onnxruntime) (1.26.4)
Requirement already satisfied: packaging in c:\users\administrator\appdata\local\programs\python\python311\lib\site-packages (from onnxruntime) (24.0)
Requirement already satisfied: protobuf in c:\users\administrator\appdata\local\programs\python\python311\lib\site-packages (from onnxruntime) (4.25.3)
Requirement already satisfied: sympy in c:\users\administrator\appdata\local\programs\python\python311\lib\site-packages (from onnxruntime) (1.12)
Collecting humanfriendly>=9.1 (from coloredlogs->onnxruntime)
  Downloading https://mirrors.aliyun.com/pypi/packages/f0/0f/310fb31e39e2d734ccaa2c0fb981ee41f7bd5056ce9bc29b2248bd569169/humanfriendly-10.0-py2.py3-none-any.whl (86 kB)
     ---------------------------------------- 86.8/86.8 kB 702.3 kB/s eta 0:00:00
Requirement already satisfied: mpmath>=0.19 in c:\users\administrator\appdata\local\programs\python\python311\lib\site-packages (from sympy->onnxruntime) (1.3.0)
Collecting pyreadline3 (from humanfriendly>=9.1->coloredlogs->onnxruntime)
  Downloading https://mirrors.aliyun.com/pypi/packages/56/fc/a3c13ded7b3057680c8ae95a9b6cc83e63657c38e0005c400a5d018a33a7/pyreadline3-3.4.1-py3-none-any.whl (95 kB)
     ---------------------------------------- 95.2/95.2 kB 779.5 kB/s eta 0:00:00
Installing collected packages: pyreadline3, flatbuffers, humanfriendly, coloredlogs, onnxruntime
Successfully installed coloredlogs-15.0.1 flatbuffers-24.3.25 humanfriendly-10.0 onnxruntime-1.17.3 pyreadline3-3.4.1

[notice] A new release of pip is available: 23.2.1 -> 24.0
[notice] To update, run: python.exe -m pip install --upgrade pip

重新运行查看结果

================================= RESTART: D:/cnocr_test.py =================================
{'text': 'Hello world!你好世界', 'score': 0.5436821579933167}

二、异常情况及解决方法

2.1 TimeOutError 
TimeoutError: The read operation timed out

出现异常“TimeoutError”:这个问题可能是由于网络连接不稳定或者下载速度过慢导致的。 

建议尝试不同的国内下载源:

阿里云:https://mirrors.aliyun.com/pypi/simple/

豆瓣(douban):http://pypi.douban.com/simple/

清华大学:https://pypi.tuna.tsinghua.edu.cn/simple/

中国科学技术大学:https://pypi.mirrors.ustc.edu.cn/simple/
2.2 Microsoft Visual C++ 14.0 or greater is required.
Collecting smmap<6,>=3.0.1 (from gitdb<5,>=4.0.1->gitpython!=3.1.29,>=1.0.0->wandb->cnocr)
  Downloading https://pypi.tuna.tsinghua.edu.cn/packages/a7/a5/10f97f73544edcdef54409f1d839f6049a0d79df68adbc1ceb24d1aaca42/smmap-5.0.1-py3-none-any.whl (24 kB)
Building wheels for collected packages: Polygon3
  Building wheel for Polygon3 (pyproject.toml) ... error
  error: subprocess-exited-with-error

  × Building wheel for Polygon3 (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [14 lines of output]
      NumPy extension not found - disabling support for it!
      running bdist_wheel
      running build
      running build_py
      creating build
      creating build\lib.win-amd64-cpython-311
      creating build\lib.win-amd64-cpython-311\Polygon
      copying Polygon\IO.py -> build\lib.win-amd64-cpython-311\Polygon
      copying Polygon\Shapes.py -> build\lib.win-amd64-cpython-311\Polygon
      copying Polygon\Utils.py -> build\lib.win-amd64-cpython-311\Polygon
      copying Polygon\__init__.py -> build\lib.win-amd64-cpython-311\Polygon
      running build_ext
      building 'Polygon.cPolygon' extension
      error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for Polygon3
Failed to build Polygon3
ERROR: Could not build wheels for Polygon3, which is required to install pyproject.toml-based projects

解决方法参考:http://t.csdnimg.cn/oQ0bQ

按照参考方案安装后重启,重新安装cnocr成功:

C:\Users\林振先>pip3.11 install cnocr -i https://pypi.tuna.tsinghua.edu.cn/simple
Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple
Collecting cnocr
  Using cached https://pypi.tuna.tsinghua.edu.cn/packages/b5/3d/c978986e04468dbbb3fb490cce28a33af7b7c6b287fa6308c489d3a65b0e/cnocr-2.3.0.2-py3-none-any.whl (222 kB)
Requirement already satisfied: click in c:\users\林振先\appdata\local\programs\python\python311\lib\site-packages (from cnocr) (8.1.7)
Collecting tqdm (from cnocr)
  Using cached https://pypi.tuna.tsinghua.edu.cn/packages/18/eb/fdb7eb9e48b7b02554e1664afd3bd3f117f6b6d6c5881438a0b055554f9b/tqdm-4.66.4-py3-none-any.whl (78 kB)
Collecting torch>=1.8.0 (from cnocr)
  Using cached https://pypi.tuna.tsinghua.edu.cn/packages/2a/b7/a3cf5fd40334b9785cc83ee0c96b50603026eb3aa70210a33729018e7029/torch-2.3.0-cp311-cp311-win_amd64.whl (159.8 MB)
Collecting torchvision>=0.9.0 (from cnocr)
  Using cached https://pypi.tuna.tsinghua.edu.cn/packages/12/c2/7c89c62f2b0a606070aa7cdb8af8af0c905562942778ebdd77600642c3b9/torchvision-0.18.0-cp311-cp311-win_amd64.whl (1.2 MB)
Requirement already satisfied: numpy in c:\users\林振先\appdata\local\programs\python\python311\lib\site-packages (from cnocr) (1.26.1)
Collecting pytorch-lightning>=2.0.0 (from cnocr)
  Using cached https://pypi.tuna.tsinghua.edu.cn/packages/15/e7/1fd6d37b1f447ca9ccece954e9f09e89b551af6fcab3ae5345b83dce8c1b/pytorch_lightning-2.2.4-py3-none-any.whl (802 kB)
Collecting wandb (from cnocr)
  Using cached https://pypi.tuna.tsinghua.edu.cn/packages/c1/00/ce87cdf89c8b4d6414d65b3359b14684fc36477d838d3fdea38c1ae24638/wandb-0.17.0-py3-none-win_amd64.whl (6.7 MB)
Collecting torchmetrics (from cnocr)
  Using cached https://pypi.tuna.tsinghua.edu.cn/packages/aa/d9/b235d32de0f496492b108db7aea0cda42c58b713e2547a149385f1dfc8e3/torchmetrics-1.4.0-py3-none-any.whl (868 kB)
Collecting pillow>=5.3.0 (from cnocr)
  Using cached https://pypi.tuna.tsinghua.edu.cn/packages/0a/16/c83877524c47976f16703d2e05c363244bc1e60ab439e078b3cd046d07db/pillow-10.3.0-cp311-cp311-win_amd64.whl (2.5 MB)
Collecting onnx (from cnocr)
  Using cached https://pypi.tuna.tsinghua.edu.cn/packages/aa/d0/0514d02d2e84e7bb48a105877eae4065e54d7dabb60d0b60214fe2677346/onnx-1.16.0-cp311-cp311-win_amd64.whl (14.4 MB)
Collecting cnstd>=1.2.3.4 (from cnocr)
  Using cached https://pypi.tuna.tsinghua.edu.cn/packages/99/d8/70886b60c977c4359ba59bd37e0428c7165702d4cb73fb75994d8a97db2d/cnstd-1.2.3.6-py3-none-any.whl (246 kB)
Requirement already satisfied: pyyaml in c:\users\林振先\appdata\local\programs\python\python311\lib\site-packages (from cnstd>=1.2.3.4->cnocr) (6.0.1)
Collecting unidecode (from cnstd>=1.2.3.4->cnocr)
  Using cached https://pypi.tuna.tsinghua.edu.cn/packages/84/b7/6ec57841fb67c98f52fc8e4a2d96df60059637cba077edc569a302a8ffc7/Unidecode-1.3.8-py3-none-any.whl (235 kB)
Collecting scipy (from cnstd>=1.2.3.4->cnocr)
  Using cached https://pypi.tuna.tsinghua.edu.cn/packages/d4/a1/d4adf25b6d2bef8d0ad1682829dcfcba97f3f96bb5b6f137bc3e41003cc7/scipy-1.13.0-cp311-cp311-win_amd64.whl (46.2 MB)
Collecting pandas (from cnstd>=1.2.3.4->cnocr)
  Using cached https://pypi.tuna.tsinghua.edu.cn/packages/ab/63/966db1321a0ad55df1d1fe51505d2cdae191b84c907974873817b0a6e849/pandas-2.2.2-cp311-cp311-win_amd64.whl (11.6 MB)
Requirement already satisfied: opencv-python>=4.0.0 in c:\users\林振先\appdata\local\programs\python\python311\lib\site-packages (from cnstd>=1.2.3.4->cnocr) (4.8.1.78)
Collecting shapely (from cnstd>=1.2.3.4->cnocr)
  Using cached https://pypi.tuna.tsinghua.edu.cn/packages/6a/5c/3330f499ca860f0b92db4ceaebd7090096a83c1ea3ae7d8d4c6111761b82/shapely-2.0.4-cp311-cp311-win_amd64.whl (1.4 MB)
Collecting Polygon3 (from cnstd>=1.2.3.4->cnocr)
  Using cached https://pypi.tuna.tsinghua.edu.cn/packages/1f/26/eea4112be43c8b7345477ad9150d499303494f32fb5951cb0f6e9104045b/Polygon3-3.0.9.1.tar.gz (39 kB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
Collecting pyclipper (from cnstd>=1.2.3.4->cnocr)
  Using cached https://pypi.tuna.tsinghua.edu.cn/packages/f3/ec/56da9f2d5d846f144530d5313a05078afb7cfc26ec179be5af35f057d064/pyclipper-1.3.0.post5-cp311-cp311-win_amd64.whl (108 kB)
Collecting matplotlib (from cnstd>=1.2.3.4->cnocr)
  Using cached https://pypi.tuna.tsinghua.edu.cn/packages/2d/d5/6227732ecab9165586966ccb54301e3164f61b470c954c4cf6940654fbe1/matplotlib-3.8.4-cp311-cp311-win_amd64.whl (7.7 MB)
Collecting seaborn (from cnstd>=1.2.3.4->cnocr)
  Using cached https://pypi.tuna.tsinghua.edu.cn/packages/83/11/00d3c3dfc25ad54e731d91449895a79e4bf2384dc3ac01809010ba88f6d5/seaborn-0.13.2-py3-none-any.whl (294 kB)
Collecting huggingface-hub (from cnstd>=1.2.3.4->cnocr)
  Using cached https://pypi.tuna.tsinghua.edu.cn/packages/21/2b/516f82c5ba9beb184b24c11976be2ad5e80fb7fe6b2796c887087144445e/huggingface_hub-0.23.0-py3-none-any.whl (401 kB)
Collecting fsspec[http]>=2022.5.0 (from pytorch-lightning>=2.0.0->cnocr)
  Using cached https://pypi.tuna.tsinghua.edu.cn/packages/93/6d/66d48b03460768f523da62a57a7e14e5e95fdf339d79e996ce3cecda2cdb/fsspec-2024.3.1-py3-none-any.whl (171 kB)
Requirement already satisfied: packaging>=20.0 in c:\users\林振先\appdata\local\programs\python\python311\lib\site-packages (from pytorch-lightning>=2.0.0->cnocr) (23.2)
Collecting typing-extensions>=4.4.0 (from pytorch-lightning>=2.0.0->cnocr)
  Using cached https://pypi.tuna.tsinghua.edu.cn/packages/01/f3/936e209267d6ef7510322191003885de524fc48d1b43269810cd589ceaf5/typing_extensions-4.11.0-py3-none-any.whl (34 kB)
Collecting lightning-utilities>=0.8.0 (from pytorch-lightning>=2.0.0->cnocr)
  Using cached https://pypi.tuna.tsinghua.edu.cn/packages/5e/9e/e7768a8e363fc6f0c978bb7a0aa7641f10d80be60000e788ef2f01d34a7c/lightning_utilities-0.11.2-py3-none-any.whl (26 kB)
Collecting filelock (from torch>=1.8.0->cnocr)
  Using cached https://pypi.tuna.tsinghua.edu.cn/packages/41/24/0b023b6537dfc9bae2c779353998e3e99ac7dfff4222fc6126650e93c3f3/filelock-3.14.0-py3-none-any.whl (12 kB)
Collecting sympy (from torch>=1.8.0->cnocr)
  Using cached https://pypi.tuna.tsinghua.edu.cn/packages/d2/05/e6600db80270777c4a64238a98d442f0fd07cc8915be2a1c16da7f2b9e74/sympy-1.12-py3-none-any.whl (5.7 MB)
Collecting networkx (from torch>=1.8.0->cnocr)
  Using cached https://pypi.tuna.tsinghua.edu.cn/packages/38/e9/5f72929373e1a0e8d142a130f3f97e6ff920070f87f91c4e13e40e0fba5a/networkx-3.3-py3-none-any.whl (1.7 MB)
Requirement already satisfied: jinja2 in c:\users\林振先\appdata\local\programs\python\python311\lib\site-packages (from torch>=1.8.0->cnocr) (3.1.2)
Collecting mkl<=2021.4.0,>=2021.1.1 (from torch>=1.8.0->cnocr)
  Using cached https://pypi.tuna.tsinghua.edu.cn/packages/fe/1c/5f6dbf18e8b73e0a5472466f0ea8d48ce9efae39bd2ff38cebf8dce61259/mkl-2021.4.0-py2.py3-none-win_amd64.whl (228.5 MB)
Collecting pretty-errors==1.2.25 (from torchmetrics->cnocr)
  Using cached https://pypi.tuna.tsinghua.edu.cn/packages/6d/8e/2df7467a15eae40e26c476683962fdb810cd1b36676603e2f139b4abbeaf/pretty_errors-1.2.25-py3-none-any.whl (17 kB)
Requirement already satisfied: colorama in c:\users\林振先\appdata\local\programs\python\python311\lib\site-packages (from pretty-errors==1.2.25->torchmetrics->cnocr) (0.4.6)
Collecting protobuf>=3.20.2 (from onnx->cnocr)
  Using cached https://pypi.tuna.tsinghua.edu.cn/packages/8d/83/d70cb6fedb1f38318af01f0035f2103732630af0ca323c0198122b49323b/protobuf-5.26.1-cp310-abi3-win_amd64.whl (420 kB)
Collecting docker-pycreds>=0.4.0 (from wandb->cnocr)
  Using cached https://pypi.tuna.tsinghua.edu.cn/packages/f5/e8/f6bd1eee09314e7e6dee49cbe2c5e22314ccdb38db16c9fc72d2fa80d054/docker_pycreds-0.4.0-py2.py3-none-any.whl (9.0 kB)
Collecting gitpython!=3.1.29,>=1.0.0 (from wandb->cnocr)
  Using cached https://pypi.tuna.tsinghua.edu.cn/packages/e9/bd/cc3a402a6439c15c3d4294333e13042b915bbeab54edc457c723931fed3f/GitPython-3.1.43-py3-none-any.whl (207 kB)
Requirement already satisfied: platformdirs in c:\users\林振先\appdata\local\programs\python\python311\lib\site-packages (from wandb->cnocr) (4.1.0)
Collecting protobuf>=3.20.2 (from onnx->cnocr)
  Using cached https://pypi.tuna.tsinghua.edu.cn/packages/ad/6e/1bed3b7c904cc178cb8ee8dbaf72934964452b3de95b7a63412591edb93c/protobuf-4.25.3-cp310-abi3-win_amd64.whl (413 kB)
Requirement already satisfied: psutil>=5.0.0 in c:\users\林振先\appdata\local\programs\python\python311\lib\site-packages (from wandb->cnocr) (5.9.7)
Requirement already satisfied: requests<3,>=2.0.0 in c:\users\林振先\appdata\local\programs\python\python311\lib\site-packages (from wandb->cnocr) (2.31.0)
Collecting sentry-sdk>=1.0.0 (from wandb->cnocr)
  Using cached https://pypi.tuna.tsinghua.edu.cn/packages/cf/58/cfbed3fdc41891e9d2b45a5dbe706dcaf35429eb1446e30a504bb2ea9ea2/sentry_sdk-2.1.1-py2.py3-none-any.whl (277 kB)
Collecting setproctitle (from wandb->cnocr)
  Using cached https://pypi.tuna.tsinghua.edu.cn/packages/7e/ba/f6da9ba74e8c2c662e932b27a01025c1bee2846222f6a2e87a69c259772f/setproctitle-1.3.3-cp311-cp311-win_amd64.whl (11 kB)
Requirement already satisfied: setuptools in c:\users\林振先\appdata\local\programs\python\python311\lib\site-packages (from wandb->cnocr) (65.5.0)
Requirement already satisfied: six>=1.4.0 in c:\users\林振先\appdata\local\programs\python\python311\lib\site-packages (from docker-pycreds>=0.4.0->wandb->cnocr) (1.16.0)
Collecting aiohttp!=4.0.0a0,!=4.0.0a1 (from fsspec[http]>=2022.5.0->pytorch-lightning>=2.0.0->cnocr)
  Using cached https://pypi.tuna.tsinghua.edu.cn/packages/a4/69/0d415c6d8450842652ce01b29f43416a0f30122b75899de01485623c7850/aiohttp-3.9.5-cp311-cp311-win_amd64.whl (370 kB)
Collecting gitdb<5,>=4.0.1 (from gitpython!=3.1.29,>=1.0.0->wandb->cnocr)
  Using cached https://pypi.tuna.tsinghua.edu.cn/packages/fd/5b/8f0c4a5bb9fd491c277c21eff7ccae71b47d43c4446c9d0c6cff2fe8c2c4/gitdb-4.0.11-py3-none-any.whl (62 kB)
Collecting intel-openmp==2021.* (from mkl<=2021.4.0,>=2021.1.1->torch>=1.8.0->cnocr)
  Using cached https://pypi.tuna.tsinghua.edu.cn/packages/6f/21/b590c0cc3888b24f2ac9898c41d852d7454a1695fbad34bee85dba6dc408/intel_openmp-2021.4.0-py2.py3-none-win_amd64.whl (3.5 MB)
Collecting tbb==2021.* (from mkl<=2021.4.0,>=2021.1.1->torch>=1.8.0->cnocr)
  Using cached https://pypi.tuna.tsinghua.edu.cn/packages/7b/2d/1e1c70fae8ace27e6200fb71c2372a9aeac2baba474b1609d7d466e969b4/tbb-2021.12.0-py3-none-win_amd64.whl (286 kB)
Requirement already satisfied: charset-normalizer<4,>=2 in c:\users\林振先\appdata\local\programs\python\python311\lib\site-packages (from requests<3,>=2.0.0->wandb->cnocr) (3.3.2)
Requirement already satisfied: idna<4,>=2.5 in c:\users\林振先\appdata\local\programs\python\python311\lib\site-packages (from requests<3,>=2.0.0->wandb->cnocr) (3.6)
Requirement already satisfied: urllib3<3,>=1.21.1 in c:\users\林振先\appdata\local\programs\python\python311\lib\site-packages (from requests<3,>=2.0.0->wandb->cnocr) (2.1.0)
Requirement already satisfied: certifi>=2017.4.17 in c:\users\林振先\appdata\local\programs\python\python311\lib\site-packages (from requests<3,>=2.0.0->wandb->cnocr) (2023.11.17)
Requirement already satisfied: MarkupSafe>=2.0 in c:\users\林振先\appdata\local\programs\python\python311\lib\site-packages (from jinja2->torch>=1.8.0->cnocr) (2.1.3)
Collecting contourpy>=1.0.1 (from matplotlib->cnstd>=1.2.3.4->cnocr)
  Using cached https://pypi.tuna.tsinghua.edu.cn/packages/d6/4f/76d0dd0bca417691918484c26c74dd9dd44fbf528bbfeb30d754886e2c54/contourpy-1.2.1-cp311-cp311-win_amd64.whl (188 kB)
Collecting cycler>=0.10 (from matplotlib->cnstd>=1.2.3.4->cnocr)
  Using cached https://pypi.tuna.tsinghua.edu.cn/packages/e7/05/c19819d5e3d95294a6f5947fb9b9629efb316b96de511b418c53d245aae6/cycler-0.12.1-py3-none-any.whl (8.3 kB)
Collecting fonttools>=4.22.0 (from matplotlib->cnstd>=1.2.3.4->cnocr)
  Using cached https://pypi.tuna.tsinghua.edu.cn/packages/c5/d4/f426fa1ca42e47bcfff0c878fa9d49d9c03379d00903a7c178f95b97867a/fonttools-4.51.0-cp311-cp311-win_amd64.whl (2.2 MB)
Collecting kiwisolver>=1.3.1 (from matplotlib->cnstd>=1.2.3.4->cnocr)
  Using cached https://pypi.tuna.tsinghua.edu.cn/packages/1e/37/d3c2d4ba2719059a0f12730947bbe1ad5ee8bff89e8c35319dcb2c9ddb4c/kiwisolver-1.4.5-cp311-cp311-win_amd64.whl (56 kB)
Collecting pyparsing>=2.3.1 (from matplotlib->cnstd>=1.2.3.4->cnocr)
  Using cached https://pypi.tuna.tsinghua.edu.cn/packages/9d/ea/6d76df31432a0e6fdf81681a895f009a4bb47b3c39036db3e1b528191d52/pyparsing-3.1.2-py3-none-any.whl (103 kB)
Requirement already satisfied: python-dateutil>=2.7 in c:\users\林振先\appdata\local\programs\python\python311\lib\site-packages (from matplotlib->cnstd>=1.2.3.4->cnocr) (2.8.2)
Collecting pytz>=2020.1 (from pandas->cnstd>=1.2.3.4->cnocr)
  Using cached https://pypi.tuna.tsinghua.edu.cn/packages/9c/3d/a121f284241f08268b21359bd425f7d4825cffc5ac5cd0e1b3d82ffd2b10/pytz-2024.1-py2.py3-none-any.whl (505 kB)
Collecting tzdata>=2022.7 (from pandas->cnstd>=1.2.3.4->cnocr)
  Using cached https://pypi.tuna.tsinghua.edu.cn/packages/65/58/f9c9e6be752e9fcb8b6a0ee9fb87e6e7a1f6bcab2cdc73f02bb7ba91ada0/tzdata-2024.1-py2.py3-none-any.whl (345 kB)
Collecting mpmath>=0.19 (from sympy->torch>=1.8.0->cnocr)
  Using cached https://pypi.tuna.tsinghua.edu.cn/packages/43/e3/7d92a15f894aa0c9c4b49b8ee9ac9850d6e63b03c9c32c0367a13ae62209/mpmath-1.3.0-py3-none-any.whl (536 kB)
Collecting aiosignal>=1.1.2 (from aiohttp!=4.0.0a0,!=4.0.0a1->fsspec[http]>=2022.5.0->pytorch-lightning>=2.0.0->cnocr)
  Using cached https://pypi.tuna.tsinghua.edu.cn/packages/76/ac/a7305707cb852b7e16ff80eaf5692309bde30e2b1100a1fcacdc8f731d97/aiosignal-1.3.1-py3-none-any.whl (7.6 kB)
Requirement already satisfied: attrs>=17.3.0 in c:\users\林振先\appdata\local\programs\python\python311\lib\site-packages (from aiohttp!=4.0.0a0,!=4.0.0a1->fsspec[http]>=2022.5.0->pytorch-lightning>=2.0.0->cnocr) (23.1.0)
Collecting frozenlist>=1.1.1 (from aiohttp!=4.0.0a0,!=4.0.0a1->fsspec[http]>=2022.5.0->pytorch-lightning>=2.0.0->cnocr)
  Using cached https://pypi.tuna.tsinghua.edu.cn/packages/b3/21/c5aaffac47fd305d69df46cfbf118768cdf049a92ee6b0b5cb029d449dcf/frozenlist-1.4.1-cp311-cp311-win_amd64.whl (50 kB)
Collecting multidict<7.0,>=4.5 (from aiohttp!=4.0.0a0,!=4.0.0a1->fsspec[http]>=2022.5.0->pytorch-lightning>=2.0.0->cnocr)
  Using cached https://pypi.tuna.tsinghua.edu.cn/packages/88/aa/ea217cb18325aa05cb3e3111c19715f1e97c50a4a900cbc20e54648de5f5/multidict-6.0.5-cp311-cp311-win_amd64.whl (28 kB)
Collecting yarl<2.0,>=1.0 (from aiohttp!=4.0.0a0,!=4.0.0a1->fsspec[http]>=2022.5.0->pytorch-lightning>=2.0.0->cnocr)
  Using cached https://pypi.tuna.tsinghua.edu.cn/packages/27/41/945ae9a80590e4fb0be166863c6e63d75e4b35789fa3a61ff1dbdcdc220f/yarl-1.9.4-cp311-cp311-win_amd64.whl (76 kB)
Collecting smmap<6,>=3.0.1 (from gitdb<5,>=4.0.1->gitpython!=3.1.29,>=1.0.0->wandb->cnocr)
  Using cached https://pypi.tuna.tsinghua.edu.cn/packages/a7/a5/10f97f73544edcdef54409f1d839f6049a0d79df68adbc1ceb24d1aaca42/smmap-5.0.1-py3-none-any.whl (24 kB)
Building wheels for collected packages: Polygon3
  Building wheel for Polygon3 (pyproject.toml) ... done
  Created wheel for Polygon3: filename=Polygon3-3.0.9.1-cp311-cp311-win_amd64.whl size=48409 sha256=f7a92b50207b45b783d0290e9bf61194489e39de6ad5e4aeca1ea6e3e9c1c6db
  Stored in directory: c:\users\林振先\appdata\local\pip\cache\wheels\de\dd\55\31b66009c821329067efab9fa9f61f3664cb7b6ef9adfeaed7
Successfully built Polygon3
Installing collected packages: tbb, pytz, pyclipper, Polygon3, mpmath, intel-openmp, unidecode, tzdata, typing-extensions, tqdm, sympy, smmap, shapely, setproctitle, sentry-sdk, scipy, pyparsing, protobuf, pretty-errors, pillow, networkx, multidict, mkl, kiwisolver, fsspec, frozenlist, fonttools, filelock, docker-pycreds, cycler, contourpy, yarl, torch, pandas, onnx, matplotlib, lightning-utilities, huggingface-hub, gitdb, aiosignal, torchvision, torchmetrics, seaborn, gitpython, aiohttp, wandb, pytorch-lightning, cnstd, cnocr
Successfully installed Polygon3-3.0.9.1 aiohttp-3.9.5 aiosignal-1.3.1 cnocr-2.3.0.2 cnstd-1.2.3.6 contourpy-1.2.1 cycler-0.12.1 docker-pycreds-0.4.0 filelock-3.14.0 fonttools-4.51.0 frozenlist-1.4.1 fsspec-2024.3.1 gitdb-4.0.11 gitpython-3.1.43 huggingface-hub-0.23.0 intel-openmp-2021.4.0 kiwisolver-1.4.5 lightning-utilities-0.11.2 matplotlib-3.8.4 mkl-2021.4.0 mpmath-1.3.0 multidict-6.0.5 networkx-3.3 onnx-1.16.0 pandas-2.2.2 pillow-10.3.0 pretty-errors-1.2.25 protobuf-4.25.3 pyclipper-1.3.0.post5 pyparsing-3.1.2 pytorch-lightning-2.2.4 pytz-2024.1 scipy-1.13.0 seaborn-0.13.2 sentry-sdk-2.1.1 setproctitle-1.3.3 shapely-2.0.4 smmap-5.0.1 sympy-1.12 tbb-2021.12.0 torch-2.3.0 torchmetrics-1.4.0 torchvision-0.18.0 tqdm-4.66.4 typing-extensions-4.11.0 tzdata-2024.1 unidecode-1.3.8 wandb-0.17.0 yarl-1.9.4

[notice] A new release of pip is available: 23.1.2 -> 24.0
[notice] To update, run: C:\Users\林振先\AppData\Local\Programs\Python\Python311\python.exe -m pip install --upgrade pip

 

  • 6
    点赞
  • 13
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值