I tried to install the Nvidia driver (sudo apt-get install nvidia-390) for AI calculations on GPU in Ubuntu 16.04 and 18.04. The installation works, but afterwards python3 is not working and giving the error: "ModuleNotFoundError: No module named 'tkinter'", but of course tkinter is installed and can not be reinstalled. I have a notebook with GT 740M graphics card. Any ideas how to get the graphics card running and also python3 running?

  • 1
    But do you have python3-tk installed? – ubfan1 May 7 '18 at 22:30
  • yes. And the same python program worked before installing the driver... – Jonny May 8 '18 at 5:34
  • Actually I figured out you are right, it was not installed. It was installed on my previous Ubuntu 16.04 and still did not work. As everywhere is written tkinter is part of python, I assumed it was installed by default on 18.04. However it was not installed and installing it of course made it work. Thank you! – Jonny May 8 '18 at 8:37
  • I made an instruction how it worked for me: askubuntu.com/questions/1033489/… – Jonny May 8 '18 at 9:08

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.