0

could't able to install the tkinter python pacakage on google colab it's showing the invalid syntax error

"code" pip3 install tkinter

"error" File "", line 1 pip3 install tkinter ^ SyntaxError: invalid syntax

Karl Knechtel
  • 62,466
  • 11
  • 102
  • 153
  • 2
    You cannot install `tkinter` using `pip3`. Also you cannot run tkinter application on google colab as there is no graphical environment, see this [question](https://stackoverflow.com/questions/61092329/setting-display-environment-variable-in-google-colab-when-using-tkinter). – acw1668 Jun 06 '21 at 10:25
  • thank you it means now i have install some idle to run the code – RISHAV RAJ Jun 09 '21 at 01:49
  • Does this answer your question? [Why does "pip install" inside Python raise a SyntaxError?](https://stackoverflow.com/questions/8548030/why-does-pip-install-inside-python-raise-a-syntaxerror) – Karl Knechtel Apr 25 '23 at 18:40

0 Answers0