I just finished installing python 3.5.1 on my Ubuntu, but am faced with this error message, regardless if I'm installing with Anaconda or with apt-get
:
No module named 'gdbm'
that normally displays on my terminal. I have also tried installing gdbm
using:
sudo apt-get install gdbm
but doesn't solve the problem. Can I get a help on how to fix this problem from anyone here?
helped me
In my case, if I tried running any command that doesn't exist in a bash shell I would get this gross error:
None of the answers above worked in my case. Although this problem has been solved, this might help someone. If you are still having this issue, maybe this will help:
I had installed python3.6 from the repository
ppa.launchpad.net/jonathonf/python-3.6/ubuntu
, and apparently that broke some things.When tying to reinstall the packages
command-not-found python3-commandnotfound python3-gdbm python3-gdbm-dbg sessioninstaller
, I noticed that apt was pulling sources from here:To fix the issue, I simply removed that repository:
And than re-ran this command (as root):
Now, everything works again:
Have you tried installing the package
python3-gdbm
Depending on version of python you recently installed, ONE of the following:
I have python 3.6 install and working i have tried many things but
This command worked for me
I had the same issue and got it solved by:
running synaptic, for something else, displayed that python3-gdbm needed an update. I allowed synaptic to make the update and: Now I get the same issue back.
When running above commands again I get as message, in the terminal, for the first command: The following packages will be DOWNGRADED : python3-gdbm. After answering Y to the question if I want to continue, traceback works again.
So there is clearly something wrong (bug) in the latest version of python3-gdbm.
helped me
I had this error when I had forgot to activate a Python virtual environment that was used with the command I was trying to run (The tx command in my case).
The correct answer is to install the python-gdbm package for your version of python. In the error trace if you see python3.8 then you need to run
sudo apt-get install python3.8-gdbm
and so on.remove gdbm first
apt remove --purge python3-gdbm
install again
apt install python3-gdbm
its work for me