import gi ModuleNotFoundError: No module named 'gi' | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

import gi ModuleNotFoundError: No module named 'gi'

I was trying to create a virtual assistant using python but I got this error. What should I do now?

3rd May 2020, 9:07 AM
Vinit Phadtare
Vinit Phadtare - avatar
2 Answers
+ 2
It is not available in SoloLearn, but if you are making it on your own PC, try using: Windows: "pip install pgi" not gi. Because gi is the name of an unrelated package in PyPi. But if you want to install the gi module, you have to install pgi as this is it's name in PyPi. But import it as gi not pgi
3rd May 2020, 9:15 AM
Ahnaf
Ahnaf - avatar
+ 1
I don't kno a library called 'gi' but if it exist, you should install the package in your system to use it, try: pip install gi command in cmd to install it
3rd May 2020, 9:13 AM
A C K
A C K - avatar