0

Recently i have installed Altinstall Python 3.8.0 in /usr/bin. However when i try to from gi.repository import GLib i get:

ModuleNotFoundError: No module named 'gi'

I have tried many ways (includingimport gi but didn't work out. And i couldn't find the right resource explaining on this.

Any tips / guides?

Raspbian Stretch

3
  • Maybe this can help with your problem? stackoverflow.com/questions/16018463/…
    – Pokebab
    Jul 26, 2020 at 14:27
  • @Pokebab thanks for the guide. I did Altinstall. Should i go for make install instead? I have successfully installed py3.8 in /usr/bin but unable to import gi again. Also i need to use future_fstrings and other new functions for manipulations . Awaiting you reply :) Jul 27, 2020 at 8:33
  • What is Altinstall? Do you compiled python 3.8.0 from source? If so, please ask at stackoverflow.com. It does not belong to Raspberry Pi. Or use an up to date Raspberry Pi OS Buster.
    – Ingo
    Jul 29, 2020 at 8:34

1 Answer 1

1

On Raspberry Pi , I have always found the standard instructions for Debian work for the gi package https://pygobject.readthedocs.io/en/latest/getting_started.html#ubuntu-getting-started

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.