gpt4 book ai didi

python - 导入错误 : No module named 'tesserwrap'

转载 作者:太空宇宙 更新时间:2023-11-04 05:06:25 25 4
gpt4 key购买 nike

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 - 导入错误 : No module named 'tesserwrap' ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44357059/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com