2017-06-04 163 views
1

正方體已經安裝在我的系統中沒有模塊名爲 '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是編輯,現在檢查 –

回答

0

tesserwrap是程序tesseract的包裝,而不是python包。你需要安裝它。對於我在Mac上,解決方案是:

brew install tesseract 

然後安裝python包裝。