2016-03-19 11 views
0

私はUbuntu 15.04のdebファイルからpython-tesseract 0.9-0.5をインストールしようとしていますが、いくつかのエラーがあります。 これは私が何をすべきかです:UbuntuでのPython-tesseractのインストール

1 - 私は、端末上のファイルのパスを開き、この後

sudo dpkg -i python-tesseract_0.9-0.5ubuntu2_i386.deb 

2-書き、コンソールにはいくつかのエラーを示しています

Selecting previously unselected package python-tesseract. 
(Reading database ... 349994 files and directories currently installed.) 

Preparing to unpack python-tesseract_0.9-0.5ubuntu2_i386.deb ... 

Unpacking python-tesseract (0.9-0.5ubuntu2) ... 
dpkg: dependency problems prevent configuration of python-tesseract: 
python-tesseract depends on python (<< 2.8). 
python-tesseract depends on python (>= 2.7~). 
python-tesseract depends on liblept4. 
python-tesseract depends on libopencv-core2.4; however: 
    Package libopencv-core2.4:i386 is not installed. 
python-tesseract depends on libtesseract3; however: 

dpkg: error processing package python-tesseract (--install): 
dependency problems - leaving unconfigured 
Errors were encountered while processing:  
python-tesseract 

3 - 確認のために、私はインストールファイルを開き、tesseract.pyクラスを抽出し、Pythonで単独で使用しました。 私はそれをこのように開いた:

python tesseract.py 

を、私はこれを得た:

Traceback (most recent call last): 
    File "tesseract.py", line 28, in <module> 
    _tesseract = swig_import_helper() 
    File "tesseract.py", line 20, in swig_import_helper 
    import _tesseract 
ImportError: No module named _tesseract 
事は、私は光学式文字認識アプリケーションのためのpythonでたTesseractの機能を使用したい、と私は理解しているということです

このための最良のラッパーはpython-tesseractです(pytesseractと同じではありません)。

私の質問は:私はUbuntu 15.04でpython-tesseractをインストールするにはどうすればいいですか?おかげで、私はたTesseractを使用するのpythonを取得しようとしていた多くの

答えて

0

それは私のためのgdebiは、依存関係をインストールするように、最初のgdebi-コアをインストールし、その後それをの.debパッケージをインストールする動作します。私はUbuntu 14.04を使用しました。

sudo apt-get install gdebi-core 
sudo gdebi python-tesseract_0.9-0.5ubuntu2_i386.deb 
+0

私は試しましたが、私は得ました: sudo gdebi python-tesseract_0.9-0.5ubuntu2_i386.deb gdebiエラー、ファイルが見つかりません:python-tesseract_0.9-0.5ubuntu2_i386.deb –

0

は、私はかなり有用であった。このtutorialを見つけました。 しかし、私はこれが私のニーズには単純すぎることを知ったので、私は別の解決策を見つける必要があります。

私はこれがあなたの人を助けることを望む!

+0

私がすでに投稿した回答が見つかりました。おそらく、python-tesseractを使用してあなたのニーズを満たす、それは非常に良いようです。ご回答有難うございます。 –

関連する問題