导入错误:

问题描述:

正方体已经安装在我的系统中没有模块名为 'tesserwrap',尝试安装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?

+0

请编辑您的问题,并包括您安装tesserwrap的步骤。 – Soviut

+0

@Soviut是编辑,现在检查 –

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

brew install tesseract 

然后安装python包装。