Python Import Error ModuleNotFoundError : No Module Named Gi In Ubuntu Linux

preview_player
Показать описание
Python Import Error ModuleNotFoundError : No Module Named Gi In Ubuntu Linux
To Install Gi python library in your ubuntu linux system, open terminal and type :
sudo apt install python3 python3-pip
Once python3 and python3-pip is installed in your system, type :

sudo apt install python3-gi
This will install python library gi in your system.
Now, type python3 to open it in interpreter mode and type :
import gi
gi.__version__
This will import gi in your python scripts and we can use it make python3 programs using python3 library GI. gi.__version__ is used to check the version of the installed python library gi in your system
Рекомендации по теме
Комментарии
Автор

thanks, when I import gi I get:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ModuleNotFoundError: No module named 'gi'

MortezaParkook
Автор

Mopidy requires GStreamer to work. GStreamer is a C library with a
number of dependencies itself, and cannot be installed with the regular
Python tools like pip.

seeufx
Автор

ERROR: A GObject Python package was not found.

seeufx