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 ~ $
main.py
is perfectly running on my local machine but in PythonAnywhere it shows this error.
I have tried pip install tkinter
and pip install tk
in PythonAnywhere.
1