手機 - Motorola XT894 - CM 11 - 解決No module named gi問題



參考資訊:
https://github.com/ibus/ibus/issues/1984

問題如下:

$ ibus-setup 
    Traceback (most recent call last):
      File "/usr/share/ibus/setup/main.py", line 31, in 
        from gi.repository import GLib
    ModuleNotFoundError: No module named 'gi'

解法如下:

$ rm -rf /usr/local/bin/python3

P.S. Python3的統一路徑應該使用update-alternatives設定於/usr/bin/下