TclError: no display name and no $DISPLAY environment variable in google's colab

后端 未结 1 519
囚心锁ツ
囚心锁ツ 2020-12-11 07:25

This error:

TclError: no display name and no $DISPLAY environment variable

arose when I tried to run a Python 3.6 program inside google\'s

相关标签:
1条回答
  • 2020-12-11 07:54

    The problem is the tkinter that you are trying to use.

    Tk will normally create GUI (like a new window) for your interface. But Colab is run on the web server in the cloud. It can't open a window on your machine. You can only interact with it through notebook interface.

    You need to limit the interaction not to use GUI. Or change them to web-based through notebook. What kind of program are you trying to run?

    0 讨论(0)
提交回复
热议问题