Skip to content
Sign upLog in
← Back to Community

Problem with Pillow on Repl.it (Python)

Profile icon
LeonGrin

I successfully installed Pillow on Repl.it, but the very basic show() function is not working. The Pillow tutorial recommends having the xv utility installed. I am not sure if this is the problem I am facing on Repl.it.

Does anybody know how can I make the Pillow's "show" function to work on Repl.it?

Pillow

Pillow tutorial: https://pillow.readthedocs.io/en/5.2.x/handbook/tutorial.html

Voters
Profile icon
gianfffranco
Profile icon
SalvadorGomez4
Profile icon
AidenHughes4
Profile icon
KaDarrianFelder
Profile icon
dmitriorekov
Profile icon
lorika00000
Profile icon
DSARichard
Profile icon
MikeW3
Profile icon
LucasGarth
Profile icon
NCCE
Comments
hotnewtop
Profile icon
brownadam

To get PIL to work launch the shell and then pip install Pillow. However, you will have to do this every single time you want to use the PIL Library since everything is wiped from the shell once you are done using it.

I really hope this work around does not get removed. I need PIL to work for a course I teach and really do not want to have to find another online workspace!

Profile icon
ash15khng

Hi, I think repl.it does not support graphics, if Pillow is a graphics library.

Profile icon
ClassicShak

Yes, I am having the same issue, I don't think pillow supports Pillow. I don't get any errors, but nothing prints out in the console

Profile icon
jfredericks

@ClassicShak
If you are using tkinter, you can insert images (PhotoImage) but they have to be in gif format. It also supports some other formats, but not jpg. I think it may do .png