Install TESSEROCR error (not resolved)

Source: Internet
Author: User
Tags imagemagick

Under Mac, we first use homebrew to install the ImageMagick and tesseract libraries:

Brew Install ImageMagick
Brew Install Tesseract--all-languages

Install TESSEROCR Next:

PIP3 Install TESSEROCR Pillow

collecting TESSEROCR Using cached https:files.pythonhosted.org/packages/f8/6d/4e81e041f33a4419e59edcb1dbdf3c56e9393f60f5ef531381bd67a1339b/tesserocr-2.3.1. Tar.gzrequirement already Satisfied:pillowinch./anaconda3/lib/python3.6/site-packages (5.1. 0) Building Wheels forcollected PACKAGES:TESSEROCR Running setup.py bdist_wheel forTESSEROCR. Error complete Output fromCommand/users/zhengcheng/anaconda3/bin/python-u-C"import setuptools, tokenize;__file__= '/private/var/folders/dm/_lrrz5tx14l7bl9qcgcbb8hh0000gn/t/ Pip-install-y4ggr5um/tesserocr/setup.py '; f=getattr (tokenize, ' open ', open) (__file__); Code=f.read (). replace (' \ r \ n ' \ n '); F.close (); Exec (compile (code, __file__, ' exec '))"bdist_wheel-d/private/var/folders/dm/_lrrz5tx14l7bl9qcgcbb8hh0000gn/t/pip-wheel-hz580ef_--python-tag cp36:supporting tesseract v3.05.02Building with configs: {'Libraries': ['tesseract','lept'],'cython_compile_time_env': {'tesseract_version': 197890}}  /users/zhengcheng/anaconda3/lib/python3.6/distutils/dist.py:261:userwarning:unknown distribution option:'Long_description_content_type'Warnings.warn (msg) running Bdist_wheel running build running Build_ext building'TESSEROCR'extension Creating build creating Build/temp.macosx-10.7-x86_64-3.6GCC-wno-unused-result-wsign-compare-wunreachable-code-dndebug-g-fwrapv-o3-wall-wstrict-prototypes-i/users/ Zhengcheng/anaconda3/include-arch X86_64-i/users/zhengcheng/anaconda3/include-arch x86_64-i/users/zhengcheng/ Anaconda3/include/python3.6m-c Tesserocr.cpp-o build/temp.macosx-10.7-x86_64-3.6/tesserocr.o-std=c++11-duse_std_namespace in file included fromtesserocr.cpp:603: in file included from/usr/local/include/tesseract/genericvector.h:27: in file included from/usr/local/include/tesseract/tesscallback.h:22:  /usr/local/include/tesseract/host.h:28:10:fatal Error:'Cstdint'File notfound#include <cstdint>//int32_t, ...^~~~~~~~~ 1error generated. Error:command'GCC'Failed with exit status 1----------------------------------------Failed Building Wheel forTESSEROCR Running setup.py Clean fortesserocrfailed to build tesserocrinstalling collected PACKAGES:TESSEROCR Running setup.py install forTESSEROCR. Error complete Output fromCommand/users/zhengcheng/anaconda3/bin/python-u-C"import setuptools, tokenize;__file__= '/private/var/folders/dm/_lrrz5tx14l7bl9qcgcbb8hh0000gn/t/ Pip-install-y4ggr5um/tesserocr/setup.py '; f=getattr (tokenize, ' open ', open) (__file__); Code=f.read (). replace (' \ r \ n ' \ n '); F.close (); Exec (compile (code, __file__, ' exec '))"Install--record/private/var/folders/dm/_lrrz5tx14l7bl9qcgcbb8hh0000gn/t/pip-record-beutjg17/install-record.txt --single-version-externally-managed--compile:supporting tesseract v3.05.02Building with configs: {'Libraries': ['tesseract','lept'],'cython_compile_time_env': {'tesseract_version': 197890}}    /users/zhengcheng/anaconda3/lib/python3.6/distutils/dist.py:261:userwarning:unknown distribution option:'Long_description_content_type'Warnings.warn (msg) running install running build running Build_ext building'TESSEROCR'extension Creating build creating Build/temp.macosx-10.7-x86_64-3.6GCC-wno-unused-result-wsign-compare-wunreachable-code-dndebug-g-fwrapv-o3-wall-wstrict-prototypes-i/users/ Zhengcheng/anaconda3/include-arch X86_64-i/users/zhengcheng/anaconda3/include-arch x86_64-i/users/zhengcheng/ Anaconda3/include/python3.6m-c Tesserocr.cpp-o build/temp.macosx-10.7-x86_64-3.6/tesserocr.o-std=c++11-duse_std_namespace in file included fromtesserocr.cpp:603: in file included from/usr/local/include/tesseract/genericvector.h:27: in file included from/usr/local/include/tesseract/tesscallback.h:22:    /usr/local/include/tesseract/host.h:28:10:fatal Error:'Cstdint'File notfound#include <cstdint>//int32_t, ...^~~~~~~~~ 1error generated. Error:command'GCC'Failed with exit status 1----------------------------------------Command"/users/zhengcheng/anaconda3/bin/python-u-C"ImportSetuptools, tokenize;__file__='/private/var/folders/dm/_lrrz5tx14l7bl9qcgcbb8hh0000gn/t/pip-install-y4ggr5um/tesserocr/setup.py'; F=getattr (Tokenize,'Open', open) (__file__); Code=f.read (). Replace ('\ r \ n','\ n'); F.close ();exec(Compile (Code,__file__,'exec'))"Install--record/private/var/folders/dm/_lrrz5tx14l7bl9qcgcbb8hh0000gn/t/pip-record-beutjg17/ Install-record.txt--single-version-externally-managed--compile"Failed with error code 1inch/private/var/folders/dm/_lrrz5tx14l7bl9qcgcbb8hh0000gn/t/pip-install-y4ggr5um/tesserocr/

Error

Install TESSEROCR error (not resolved)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.