How to install python binding of pango and pangocairo in ubuntu 20.04

4k views Asked by At

I'm pretty new to pango and pangecairo, but I'd like to install a python binding of pango and pangocairo. I've installed pango, pangocffi, pangocairocffi via pip but it still tells me that no module named when I try to import them in python. Btw, I also install libsdl-pango-dev via apt but it seems not working as well. I have been searching solutions for a few days but no luck. Could anyone help me with that? Really appreciate!

1

There are 1 answers

2
Hacker anania On

First make sure you have internet connection.

Then update your OS:

sudo apt-get update -y

Then install it with:

sudo apt-get install -y libpango-1.0-0

please if it works follow me plz