ocropus / hocr-tools

Tools for manipulating and evaluating the hOCR format for representing multi-lingual OCR results by embedding them into HTML.
Other
359 stars 78 forks source link

Installation instructions for Python packages need update for Python 3 #162

Open agarwalsonakshi opened 3 years ago

agarwalsonakshi commented 3 years ago

I am not able to install few dependencies of hocr-tools in ubuntu20.04 with python3.8 but it was working fine in ubuntu18.04 with python3.6.

I run this Command :

sudo apt-get install python-lxml python-reportlab python-pil python-beautifulsoup python-numpy python-scipy python-matplotlib

and getting below error:

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package python-matplotlib is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

Package python-scipy is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Unable to locate package python-reportlab
E: Unable to locate package python-beautifulsoup
E: Package 'python-scipy' has no installation candidate
E: Package 'python-matplotlib' has no installation candidate

Could you please help me on how to install these dependencies?

stweil commented 3 years ago

The instructions were valid for Python 2 which is no longer available now, so they need an update for Python 3.

Try sudo apt install python3-lxml python3-reportlab python3-pil python3-numpy python3-scipy python3-matplotlib.

Carla-33 commented 2 years ago

can help me in that Traceback (most recent call last): File "flow.py", line 4, in import matplotlib.pyplot as pylab ImportError: No module named matplotlib.pyplot