【Ubuntu报错】ModuleNotFoundError: No module named ‘gdbm‘

  • Post author:
  • Post category:其他




报错内容

root@localhost:/var/app/appqz-python/releases# ..
Traceback (most recent call last):
  File "/usr/lib/python3.6/dbm/gnu.py", line 4, in <module>
    from _gdbm import *
ModuleNotFoundError: No module named '_gdbm'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/CommandNotFound/CommandNotFound.py", line 7, in <module>
    import dbm.gnu as gdbm
  File "/usr/lib/python3.6/dbm/gnu.py", line 6, in <module>
    raise ImportError(str(msg) + ', please install the python3-gdbm package')
ImportError: No module named '_gdbm', please install the python3-gdbm package



解决方法

sudo apt-get install python3.6-gdbm



版权声明:本文为isa_II原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。