Is dbm.gnu not supported on Python 3.7 Windows?

百般思念 提交于 2021-01-28 11:23:08

问题


When doing

import dbm.gnu

on a standard Python 3.7.6 (64) for Windows, I get:

File "C:\Python37\lib\dbm\gnu.py", line 3, in
from _gdbm import *
ModuleNotFoundError: No module named '_gdbm'

Isn't dbm.gnu supported out of the box on Windows?


  • The same problem happens with:

    import dbm.ndbm
    

    File "C:\Python37\lib\dbm\ndbm.py", line 3, in
    from _dbm import *
    ModuleNotFoundError: No module named '_dbm'

  • I tested on another Python 3.6.8, and it's the same.

来源:https://stackoverflow.com/questions/64909747/is-dbm-gnu-not-supported-on-python-3-7-windows

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!