17:21 ~ $ python main.py
Traceback (most recent call last):
File "/home/SpidY/main.py", line 66, in <module>
window = Tk()
File "/usr/local/lib/python3.10/tkinter/__init__.py", line 2299, in __init__
self.tk = _tkinter.create(screenName, baseName, className, interactive, wantobjects, useTk, sync, use)
_tkinter.TclError: no display name and no $DISPLAY environment variable 17:21 ~ $
this python file main.py
is perfectly running in my local machine but when I tried in pythonanywhere it shows this error.
I have tried like pip install tkinter
and pip install tk
all these in pythonanywhere.