centos环境下 pytesseract.image_to_string() 发生OSError: [Errno 2] No such file or directory

原创 2018年04月17日 20:13:04
word = pytesseract.image_to_string(bw)
File "/usr/lib/python2.7/site-packages/pytesseract/pytesseract.py", line 193, in image_to_string
return run_and_get_output(image, 'txt', lang, config, nice)
File "/usr/lib/python2.7/site-packages/pytesseract/pytesseract.py", line 140, in run_and_get_output
run_tesseract(**kwargs)
File "/usr/lib/python2.7/site-packages/pytesseract/pytesseract.py", line 111, in run_tesseract
proc = subprocess.Popen(command, stderr=subprocess.PIPE)
File "/usr/lib64/python2.7/subprocess.py", line 711, in __init__
errread, errwrite)
File "/usr/lib64/python2.7/subprocess.py", line 1327, in _execute_child
raise child_exception
OSError: [Errno 2] No such file or directory


经查询,centos环境下执行:yum install tesseract 

安装tesseract 即可。


版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/zyy247796143/article/details/79980006

使用Popen时报错:OSError: [Errno 2] No such file or directory

《Python基础教程里的例子》#tidy.py from subprocess import Popen,PIPEtext=open('messy.html').read() tidy=Popen(...
  • zc123456zzc
  • zc123456zzc
  • 2015-09-16 19:22:42
  • 3859

airflow 解决安装问题 OSError: [Errno 2] No such file or directory

airflow 启动报错 OSError: [Errno 2] No such file or directory
  • aubdiy
  • aubdiy
  • 2017-06-30 09:33:19
  • 1056

MTK编译差分包问题OSError: [Errno 2] No such file or directory

MTK编译差分包问题OSError: [Errno 2] No such file or directory
  • u011183484
  • u011183484
  • 2017-05-09 14:52:28
  • 530

git gitosis-init OSError: [Errno 2] No such file or directory

[root@localhost ~]# sudo -H -u git gitosis-init Traceback (most recent call last):   File "/usr/b...
  • u010098331
  • u010098331
  • 2016-03-03 16:18:29
  • 1657

OSError: [Errno 2] No such file or directory

Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/2.7/lib/pyt...
  • furnace09
  • furnace09
  • 2014-01-17 13:46:14
  • 2548

Android 4.4 build err:OSError: [Errno 2] No such file or directory

错误信息: Gyp action: Generating JNI bindings from  /home/rainbo/CITS/prebuilts/sdk/17/android.jar/java/...
  • jikmike
  • jikmike
  • 2015-03-09 17:46:28
  • 890

RHEL 5.7 Yum配置本地源[Errno 2] No such file or directory

在Red Hat Enterprise Linux Server release 5.7 上配置YUM本地源时,遇到了"Errno 5] OSError: [Errno 2] No such file...
  • sinat_22991367
  • sinat_22991367
  • 2017-02-27 21:15:06
  • 898

Android-4.4.2 编译出错 OSError: [Errno 2] No such file or directory

在Ubuntu14.04下编译sama5d44 Android-4.4.2 版本时出错:   File "scripts/make_css_property_names.py", line 233,...
  • u010333613
  • u010333613
  • 2017-06-15 14:37:12
  • 1728

制作差分包失败提示OSError[Errno 2] No such file no directory分析

首先来说这是一个很不应该的错误,刚开始以为是Python2.6.5版本的问题,但是更新了版本依旧如此;然后网上查了一下,很多网友认为是环境变量的问题,但是实际上环境变量配置也没有什么问题(错误看起来相...
  • huangyabin001
  • huangyabin001
  • 2015-02-12 16:00:02
  • 4063

FileNotFoundError: [Errno 2] "dot" not found in path.

解决sudo apt-get insall graphviz
  • weixin_39777626
  • weixin_39777626
  • 2018-03-23 00:27:42
  • 52
收藏助手
不良信息举报
您举报文章:centos环境下 pytesseract.image_to_string() 发生OSError: [Errno 2] No such file or directory
举报原因:
原因补充:

(最多只允许输入30个字)