鍍金池/ 問答/Java  Python  Linux  數(shù)據(jù)庫  HTML/ python3.5的gdbm無法安裝?

python3.5的gdbm無法安裝?

clipboard.png
這個主要是我在輸入一個錯誤命令后,似乎python的conmmandnotfound.py損壞,由于缺少gdbm的原因。
我從網(wǎng)上找了原因

sudo apt-get install python3.5-gdbm

如上圖,然后嘗試

sudo apt-get install python3.6-gdbm

clipboard.png
都沒有用。如何解決呢?
下面是我輸入錯誤名時,提示的信息。

clipboard.png

回答
編輯回答
念舊
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。在將源代碼轉(zhuǎn)換為 Python 3 時, 2to3 工具將自動調(diào)整導(dǎo)入。

參見:

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

2017年6月20日 13:13