python3.5的gdbm无法安装?

clipboard.png
这个主要是我在输入一个错误命令后,似乎python的conmmandnotfound.py损坏,由于缺少gdbm的原因。
我从网上找了原因

sudo apt-get install python3.5-gdbm

如上图,然后尝试

sudo apt-get install python3.6-gdbm

clipboard.png
都没有用。如何解决呢?
下面是我输入错误名时,提示的信息。

clipboard.png

阅读 3.2k
1 个回答
The gdbm module has been renamed to dbm.gnu in Python 3. The 2to3 tool will automatically adapt imports when converting your sources to Python 3.

gdbm 模块在Python3中已重命名为 dbm.gnu。在将源代码转换为 Python 3 时, 2to3 工具将自动调整导入。

参见:

https://docs.python.org/2/lib...

撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题