ImportError:没有名为' tesserwrap'

时间:2017-06-04 17:46:09

标签: python tesseract python-tesseract pytesser

Tesseract已安装在我的系统中,尝试安装tesserwrap,但收到错误

使用命令安装Tesseract -

  pip install tesseract

尝试使用命令安装Tesserwrap模块 -

pip install tesserwrap
 Collecting tesserwrap   Using cached tesserwrap-0.1.6.tar.gz
        Complete output from command python setup.py egg_info:
        'ld' is not recognized as an internal or external command,
        operable program or batch file.
        'ld' is not recognized as an internal or external command,
        operable program or batch file.
        Traceback (most recent call last):
          File "<string>", line 1, in <module>
          File "C:\Users\hp\AppData\Local\Temp\pip-build-_ftm6_ot\tesserwrap\setup.py", line 45, in <module>
            extra_lib_paths)
          File "C:\Users\hp\AppData\Local\Temp\pip-build-_ftm6_ot\tesserwrap\setup.py", line 30, in find_closest_libname
            "Cannot find Tesseract via ldconfig, confirm it is installed.")
        Exception: Cannot find Tesseract via ldconfig, confirm it is installed.

        ---------------------------------------- Command "python setup.py egg_info" failed with error code 1 in C:\Users\hp\AppData\Local\Temp\pip-build-_ftm6_ot\tesserwrap\

有没有其他方法可以安装Tesserwrap?

1 个答案:

答案 0 :(得分:1)

tesserwrap是程序tesseract的包装器,而不是python包。你需要安装它。对我来说,Mac上的解决方案是:

brew install tesseract

然后安装python包装器。