breezedeus / CnOCR

CnOCR: Awesome Chinese/English OCR Python toolkits based on PyTorch. It comes with 20+ well-trained models for different application scenarios and can be used directly after installation. 【基于 PyTorch/MXNet 的中文/英文 OCR Python 包。】

Home Page:https://www.breezedeus.com/article/cnocr

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

error: subprocess-exited-with-error

nmww opened this issue · comments

commented

image

image

 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 109.2/109.2 kB 2.1 MB/s eta 0:00:00

Preparing metadata (setup.py) ... done
Requirement already satisfied: six>=1.5 in c:\users\pc\appdata\roaming\python\python37\site-packages (from python-dateutil>=2.7->matplotlib->cnstd>=1.2.3->cnocr[ort-cpu]) (1.16.0)
Building wheels for collected packages: Polygon3, pyreadline
Building wheel for Polygon3 (setup.py) ... error
error: subprocess-exited-with-error

× python setup.py bdist_wheel did not run successfully.
│ exit code: 1
╰─> [14 lines of output]
Using NumPy extension!
running bdist_wheel
running build
running build_py
creating build
creating build\lib.win-amd64-3.7
creating build\lib.win-amd64-3.7\Polygon
copying Polygon\IO.py -> build\lib.win-amd64-3.7\Polygon
copying Polygon\Shapes.py -> build\lib.win-amd64-3.7\Polygon
copying Polygon\Utils.py -> build\lib.win-amd64-3.7\Polygon
copying Polygon_init_.py -> build\lib.win-amd64-3.7\Polygon
running build_ext
building 'Polygon.cPolygon' extension
error: Microsoft Visual C++ 14.0 is required. Get it with "Build Tools for Visual Studio": https://visualstudio.microsoft.com/downloads/
[end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for Polygon3
Running setup.py clean for Polygon3
Building wheel for pyreadline (setup.py) ... done
Created wheel for pyreadline: filename=pyreadline-2.1-py3-none-any.whl size=93852 sha256=89efe4a5e7f88a6241ef9536e66209c662b27199a0009206d636e42fce2f2bcb
Stored in directory: c:\users\pc\appdata\local\pip\cache\wheels\4d\90\28\e0a56429ed4e8629caeaae59d36193af08186191181f1de392
Successfully built pyreadline
Failed to build Polygon3
ERROR: Could not build wheels for Polygon3, which is required to install pyproject.toml-based projects

C:\Users\PC>pip install pyproject.toml-based projects -i https://mirrors.aliyun.com/pypi/simple
Defaulting to user installation because normal site-packages is not writeable
Looking in indexes: https://mirrors.aliyun.com/pypi/simple
ERROR: Could not find a version that satisfies the requirement pyproject.toml-based (from versions: none)
ERROR: No matching distribution found for pyproject.toml-based