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的方法吗?

最佳答案

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

brew install tesseract


然后安装python包装器。

关于python - ImportError:没有名为“tesserwrap”的模块,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/44357059/

10-11 04:47