Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
agarwalsonakshi opened this issue Jan 21, 2021 · 2 comments

Comments

@agarwalsonakshi
Copy link

agarwalsonakshi commented Jan 21, 2021

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
Copy link
Collaborator

stweil commented Apr 6, 2021

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.

@stweil stweil changed the title hocr-tools dependencies are unable to install in ubuntu 20.04 with python3.8.5 Installation instructions for Python packages need update for Python 3 Apr 6, 2021
@Carla-33
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants