Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

No module named gi

i have try all the possible command given below:

pip install pgi , pip install PyGObject , pip install python-gi

Still not able to install the module in python . Installed python 3.7 also try to make a virtual environment but not able to install the module .

#import cv2
import gi
import numpy as np

gi.require_version('Gst', '1.0')
from gi.repository import Gst
like image 542
HARSH BHATNAGAR Avatar asked Feb 16 '26 16:02

HARSH BHATNAGAR


1 Answers

Try this:

sudo apt install libcairo2-dev libxt-dev libgirepository-2.0-dev

pip install pycairo PyGObject
like image 60
5 revs, 5 users 56%sxyxxn Avatar answered Feb 18 '26 05:02

5 revs, 5 users 56%sxyxxn