[Python] how to install PIL with pip?

Discussão em 'Python' iniciado por Stack, Junho 27, 2025.

  1. Stack

    Stack Membro Participativo

    when I run the following

    from tkinter import *
    from PIL import ImageTk, Image




    root.mainloop()


    I got

    Traceback (most recent call last):
    File "image_viewer.py", line 2, in <module>
    from PIL import ImageTk, Image
    ImportError: No module named PIL


    but I already install Pillow and everything is fine.

    Continue reading...

Compartilhe esta Página