最終更新:2020-12-02 (水) 02:45:16 (48d)  

Ubuntu/Python
Top / Ubuntu / Python

  • python3-all?

Ubuntu 18.04

ターミナルが開かなくなる

  • https://github.com/aben20807/blog-post/issues/80
    $ gnome-terminal
    Traceback (most recent call last):
      File "/usr/bin/gnome-terminal", line 9, in <module>
        from gi.repository import GLib, Gio
      File "/usr/lib/python3/dist-packages/gi/__init__.py", line 42, in <module>
        from . import _gi
    ImportError: cannot import name '_gi' from 'gi' (/usr/lib/python3/dist-packages/gi/__init__.py)
    cd /usr/lib/python3/dist-packages/gi
    sudo ln -s _gi.cpython-{36m,37m}-x86_64-linux-gnu.so