0

I wanted to program in Python in Ubuntu. So I was surprised when python module tkinter did not work and I tried to solve the problem, without success. But after closing the Terminal, it did not open again. So I tried solving the problem using XTerm and the command :~$gnome-terminal. But there was an error message:

bash: /usr/bin/gnome-terminal: /usr/bin/python3: bad interpreter: No such file or directory

So, how can I solve the problem?! Thank you for your help!

-1

I guess the problem is that gnome-terminal starts with #!/bin/python and in your case this reference to nothing

Please try sudo dpkg-reconfigure python

and read this The Second Answer of this question

And Welcome to the FREE world of GNU/Linux

It supposed to be a comment but I don't have enough reputation :P

  • Sorry, but it didn't solve the problem... Could it be a way to uninstall python with XTerm and reinstall it? – Niklas Arndt Dec 22 '16 at 14:41
  • Update: I am still searching and i have a question: In my /bin directory there isn't a file/directory called python – Niklas Arndt Dec 22 '16 at 14:55
  • Okay, it's a broken link. It is linked to python3.5 and there is the error: python3.5 is linked to /opt/Python-3.5.0/Python... how to solve it? :( – Niklas Arndt Dec 22 '16 at 15:00

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.