Forums

unable to open X server `' @ error/display.c/DisplayImageCommand/428

Hello, i've upoaded 2 pics to my project's folder and try to do some actions with them using pillow module. But i get the following error:

unable to open X server `' @ error/display.c/DisplayImageCommand/428

how can i fix that? thanks

You can't display an image in a PythonAnywhere console. There is no screen for the image to be displayed on. You can probably save it and then view it by going to the saved image in the Files tab.