zoukankan      html  css  js  c++  java
  • 安装tesserocr错误(未解决)

    在win10下使用pip install tesserocr安装时,始终报错,未解决问题

    解压tesserocr-2.2.2.tar.gz该文件夹后,查看setup.py文件,发现似乎model只能再linux下安装。

    记录该问题,希望以后能够找到根本问题所在,并解决。

    C:UsersLenovo>pip install tesserocr
    Collecting tesserocr
      Using cached tesserocr-2.2.2.tar.gz
    Building wheels for collected packages: tesserocr
      Running setup.py bdist_wheel for tesserocr ... error
      Complete output from command C:UsersLenovoAppDataLocalProgramsPythonPython35python.exe -u -c "import setuptools, tokenize;__file__='C:\Users\Lenovo\AppData\Local\Temp\pip-build-jg52tngj\tesserocr\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('
    ', '
    ');f.close();exec(compile(code, __file__, 'exec'))" bdist_wheel -d C:UsersLenovoAppDataLocalTemp	mplxr9xiuxpip-wheel- --python-tag cp35:
      pkg-config failed to find tesseract/lept libraries: b"Package tesseract was not found in the pkg-config search path.
    Perhaps you should add the directory containing `tesseract.pc'
    to the PKG_CONFIG_PATH environment variable
    No package 'tesseract' found
    "
      Supporting tesseract v3.05.01
      Building with configs: {'cython_compile_time_env': {'TESSERACT_VERSION': 197889}, 'libraries': ['tesseract', 'lept']}
      running bdist_wheel
      running build
      running build_ext
      building 'tesserocr' extension
      error: [WinError 2] 系统找不到指定的文件。
    
      ----------------------------------------
      Failed building wheel for tesserocr
      Running setup.py clean for tesserocr
    Failed to build tesserocr
    Installing collected packages: tesserocr
      Running setup.py install for tesserocr ... error
        Complete output from command C:UsersLenovoAppDataLocalProgramsPythonPython35python.exe -u -c "import setuptools, tokenize;__file__='C:\Users\Lenovo\AppData\Local\Temp\pip-build-jg52tngj\tesserocr\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('
    ', '
    ');f.close();exec(compile(code, __file__, 'exec'))" install --record C:UsersLenovoAppDataLocalTemppip-my824laz-recordinstall-record.txt --single-version-externally-managed --compile:
        pkg-config failed to find tesseract/lept libraries: b"Package tesseract was not found in the pkg-config search path.
    Perhaps you should add the directory containing `tesseract.pc'
    to the PKG_CONFIG_PATH environment variable
    No package 'tesseract' found
    "
        Supporting tesseract v3.05.01
        Building with configs: {'libraries': ['tesseract', 'lept'], 'cython_compile_time_env': {'TESSERACT_VERSION': 197889}}
        running install
        running build
        running build_ext
        building 'tesserocr' extension
        error: [WinError 2] 系统找不到指定的文件。
    
        ----------------------------------------
    Command "C:UsersLenovoAppDataLocalProgramsPythonPython35python.exe -u -c "import setuptools, tokenize;__file__='C:\Users\Lenovo\AppData\Local\Temp\pip-build-jg52tngj\tesserocr\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('
    ', '
    ');f.close();exec(compile(code, __file__, 'exec'))" install --record C:UsersLenovoAppDataLocalTemppip-my824laz-recordinstall-record.txt --single-version-externally-managed --compile" failed with error code 1 in C:UsersLenovoAppDataLocalTemppip-build-jg52tngj	esserocr
  • 相关阅读:
    Virtio:针对 Linux 的 I/O 虚拟化框架
    修复MySQL的MyISAM表命令check table用法
    Linux 下用 smartd 监测硬盘状况
    借助JVM生日的时机,说说关于JVM你所不知道的那些事
    实时流计算、Spark Streaming、Kafka、Redis、Exactly-once、实时去重
    使用Kafka、Elasticsearch、Grafana搭建业务监控系统(三)Elasticsearch
    zabbix监控多实例tomcat--不使用JMX
    KAFKA随机产生JMX 端口指定的问题
    nginx+keepalived高可用服务器宕机解决方案
    tomcat 内存参数优化示例
  • 原文地址:https://www.cnblogs.com/zrdm/p/8508639.html
Copyright © 2011-2022 走看看